<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Regex for dictionary entries]]></title><description><![CDATA[<p dir="auto">Hi<br />
I’m looking for a regex that would take the main entry at the beginning of the line and replace it with the tilde character following any numeral and finally put it in a separate line, together with the definition(s), and another one that would delete all the usage examples and their translations, set in either in bold or italic, while keeping the rest intact.<br />
Hence:<br />
bankrupt [tab] 1. blah blah 2. blah blah 3. blah blah<br />
bankruptly [tab] müflisane, iflas ederek/etmişçesine<br />
(Assuming each main entry is followed by a tab)</p>
<p dir="auto">Could someone provide me with one?<br />
Many thanks in advance!</p>
<p dir="auto"><img src="https://i.ibb.co/gWL4CDB/bankrupt.png" alt="img" class=" img-fluid img-markdown" /></p>
<p dir="auto"><img src="https://i.ibb.co/Pck027y/bankrupt-txt.png" alt="img" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/topic/17378/regex-for-dictionary-entries</link><generator>RSS for Node</generator><lastBuildDate>Fri, 16 Oct 2026 08:45:11 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/17378.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 29 Mar 2019 21:33:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Regex for dictionary entries on Sun, 31 Mar 2019 15:15:23 GMT]]></title><description><![CDATA[<p dir="auto">Hi guy,</p>
<p dir="auto">Just a quick confirmation: I’ve re-produced the same results with TEST_2 text and previous ones. I simply introduced a line-break to the very last line after copying&amp;pasting by hitting the enter. This last line-break fixed the problem. I’ll continue to apply the regexes  to severeal other entries and I’ill report problems in case I encounter.</p>
<p dir="auto">Thank you so much for your time and effort! I do muchappreciate it!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/41760</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/41760</guid><dc:creator><![CDATA[glossar]]></dc:creator><pubDate>Sun, 31 Mar 2019 15:15:23 GMT</pubDate></item><item><title><![CDATA[Reply to Regex for dictionary entries on Sun, 31 Mar 2019 16:58:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/glossar" aria-label="Profile: glossar">@<bdi>glossar</bdi></a>, and <strong>All</strong>,</p>
<p dir="auto">OK ! So just let’s split the problem in <strong>smaller</strong> pieces  and focus on the <strong>first</strong> S/R ;-))</p>
<p dir="auto">You said :</p>
<blockquote>
<p dir="auto">there seems to be a tiny problem with the second bankrupt entry. The first regex won’t join the “fee” and “lings…” together</p>
</blockquote>
<p dir="auto">From my regex, it should !! Of course, I assume that the <strong>TAB</strong> character ( <strong><code>\t</code></strong> ) <strong>only</strong> exists <strong>after</strong> each dictionary <strong>header</strong> word, only !</p>
<p dir="auto">So, first, could you <strong>verify</strong> that the <strong><code>\t</code></strong> char occurs <strong>right after</strong> each entry, <strong>only</strong> and <strong>never</strong> occurs elsewhere ?</p>
<hr />
<p dir="auto">Now, from this <strong>TEST_2</strong> text, below, with some <strong>line breaks</strong>, between <strong>header</strong> words and additional <strong>line-breaks</strong>, added inside <strong>definitions</strong> ( <strong><code>5</code></strong> in the definition <strong><code>#1</code></strong> , <strong><code>1</code></strong> in the definition <strong><code>#2</code></strong> and <strong><code>2</code></strong> in the definition <strong><code>#3</code></strong> ) :</p>
<pre><code class="language-diff">bankrupt	1. huk.





bankrupt	1. huk. batkın, müflis, batmış, iflâs etmiş, bor
çlarını ödeye
meyen kimse, to go ~ : batmak, iflâs etmek, to be ~ : yoksun olmak.
 He seems to be ~ of all kind fee
lings : Her türlü asil duygu
lardan yoksun görünüyor. fraudulent/negli-gent - : kötü niyetli batkın, hileli müflis, 2. meteli
ksiz, 3. yoksun, mahrum, düşkün, an ~ intellectual: fikir 
yoksunu. ~ of intelligence : akılsız, a moral
 ~ : ahlâk düşkünü, to be - of manners : terbiyeden yoksun olmak, 4. batırmak, iflâs ettirmek, yoksun bırakmak, mahvetmek. His embezzlement ~ed the company : Zimmetine para geçirmesi şirketi batırdı/iflâs ettirdi. 5. ~ly : müflisane, iflâs ede-rek/etmişçesine. 6. ~able : müflisane, iflâs ede-rek/etmişçesine.




bankrupt	1. huk.
</code></pre>
<p dir="auto">With my  <strong>first</strong> regex :</p>
<ul>
<li>
<p dir="auto">SEARCH <strong><code>(\R)\R*(?=\w+\t)|\R(?=[^\t\r\n]+\R)</code></strong></p>
</li>
<li>
<p dir="auto">REPLACE <strong><code>?1\1</code></strong></p>
</li>
</ul>
<p dir="auto">After clicking on the <strong><code>Replace All</code></strong> button, you <strong>should</strong> get this text :</p>
<pre><code class="language-diff">bankrupt	1. huk.
bankrupt	1. huk. batkın, müflis, batmış, iflâs etmiş, borçlarını ödeyemeyen kimse, to go ~ : batmak, iflâs etmek, to be ~ : yoksun olmak. He seems to be ~ of all kind feelings : Her türlü asil duygulardan yoksun görünüyor. fraudulent/negli-gent - : kötü niyetli batkın, hileli müflis, 2. meteliksiz, 3. yoksun, mahrum, düşkün, an ~ intellectual: fikir yoksunu. ~ of intelligence : akılsız, a moral ~ : ahlâk düşkünü, to be - of manners : terbiyeden yoksun olmak, 4. batırmak, iflâs ettirmek, yoksun bırakmak, mahvetmek. His embezzlement ~ed the company : Zimmetine para geçirmesi şirketi batırdı/iflâs ettirdi. 5. ~ly : müflisane, iflâs ede-rek/etmişçesine. 6. ~able : müflisane, iflâs ede-rek/etmişçesine.
bankrupt	1. huk.
</code></pre>
<p dir="auto">Which proves that <strong>unnecessary</strong> line-breaks have been <strong>removed</strong> ! Could you confirm me that’s the text obtained, <strong>after</strong> the regex S/R ?</p>
<p dir="auto">BR</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/41759</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/41759</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sun, 31 Mar 2019 16:58:19 GMT</pubDate></item><item><title><![CDATA[Reply to Regex for dictionary entries on Sun, 31 Mar 2019 11:39:02 GMT]]></title><description><![CDATA[<p dir="auto">Hi guy,<br />
Thank you so much! For the bankrupt entry, we almost got there! I tried the three regexes several times, I might still have missed something but there seems to be a tiny problem with the second bankrupt entry. The first regex won’t join the “fee” and “lings…” together. I introduced a second line-break in the second bankrupt entry, this time it fixed the first line-break and joined “fee” and “lings…” together but didn’t touch the second one. Hence I got the following results respectively:</p>
<pre><code class="language-diff">bankrupt	1. huk. batkın, müflis, batmış, iflâs etmiş, borçlarını ödeyemeyen kimse, 2. meteliksiz, 3. yoksun, mahrum, düşkün, 4. batırmak, iflâs ettirmek, yoksun bırakmak, mahvetmek.
bankruptly	1. müflisane, iflâs ede-rek/etmişçesine.
bankruptable	1. müflisane, iflâs ede-rek/etmişçesine.
bankrupt	1. huk. batkın, müflis, batmış, iflâs etmiş, borçlarını ödeyemeyen kimse,
lings : Her türlü asil duygulardan yoksun görünüyor. fraudulent/negli-gent - : kötü niyetli batkın, hileli müflis, 2. meteliksiz, 3. yoksun, mahrum, düşkün, 4. batırmak, iflâs ettirmek, yoksun bırakmak, mahvetmek.
bankruptly	1. müflisane, iflâs ede-rek/etmişçesine,
bankruptable	1. müflisane, iflâs ede-rek/etmişçesine,

bankrupt	1. huk. batkın, müflis, batmış, iflâs etmiş, borçlarını ödeyemeyen kimse, 2. meteliksiz, 3. yoksun, mahrum, düşkün, 4. batırmak, iflâs ettirmek, yoksun bırakmak, mahvetmek.
bankruptly	1. müflisane, iflâs ede-rek/etmişçesine.
bankruptable	1. müflisane, iflâs ede-rek/etmişçesine.
bankrupt	1. huk. batkın, müflis, batmış, iflâs etmiş, borçlarını ödeyemeyen kimse,
niyetli batkın, hileli müflis, 2. meteliksiz, 3. yoksun, mahrum, düşkün, 4. batırmak, iflâs ettirmek, yoksun bırakmak, mahvetmek.
bankruptly	1. müflisane, iflâs ede-rek/etmişçesine,
bankruptable	1. müflisane, iflâs ede-rek/etmişçesine,
</code></pre>
<p dir="auto">I also applied the regexes to few other entries. They don’t seem to get the job done. Two things that I could point out:</p>
<ul>
<li>
<p dir="auto">There may be only 1, or 2 or more suffixes (up to 5) within an entry consecutively, e.g “7. ~ly: (definition(s)), 8 ~able: (definition(s)), 9. ~ness: definition(s)).”</p>
</li>
<li>
<p dir="auto">A colon (:) may or may not, without or with one or more spaces before or after it, follow the respective suffix, only the numerals are consistent, i.e. each suffix is preceded by a numeral. Below are some possilibities, not all because you will get the idea:<br />
[number+dot]+(0 space)+(~suffix)+(0 space)+(0 colon)+(0 space)+definition(s)<br />
[number+dot]+(0 space)+(~suffix)+(0 space)+(1 colon)+(0 space)+definition(s)<br />
[number+dot]+(1 space)+(~suffix)+(0 space)+(0 colon)+(1 space)+definition(s)<br />
[number+dot]+(1 space)+(~suffix)+(0 space)+(1 colon)+(1 space)+definition(s)<br />
[number+dot]+(1 space)+(~suffix)+(1 space)+(0 colon)+(1 space)+definition(s)<br />
[number+dot]+(1 space)+(~suffix)+(1 space)+(1 colon)+(1 space)+definition(s)<br />
[number+dot]+(0 space)+(~suffix)+(1 space)+(0 colon)+(1 space)+definition(s)<br />
[number+dot]+(0 space)+(~suffix)+(1 space)+(1 colon)+(1 space)+definition(s)<br />
[number+dot]+(2 or more spaces)+(~suffix)+(0 space)+(0 colon)+(0 space)+definition(s)<br />
[number+dot]+(2 or more spaces)+(~suffix)+(1 space)+(0 colon)+(0 space)+definition(s)<br />
[number+dot]+(2 or more spaces)+(~suffix)+(1 space)+(1 colon)+(0 space)+definition(s)<br />
[number+dot]+(2 or more spaces)+(~suffix)+(0 space)+(0 colon)+(1 space)+definition(s)<br />
[number+dot]+(2 or more spaces)+(~suffix)+(1 space)+(0 colon)+(1 space)+definition(s)<br />
[number+dot]+(2 or more spaces)+(~suffix)+(0 space)+(1 colon)+(1 space)+definition(s)<br />
[number+dot]+(2 or more spaces)+(~suffix)+(1 space)+(1 colon)+(1 space)+definition(s)<br />
[number+dot]+(2 or more spaces)+(~suffix)+(0 space)+(0 colon)+(2 or more spaces)+definition(s)<br />
[number+dot]+(2 or more spaces)+(~suffix)+(1 space)+(0 colon)+(2 or more spaces)+definition(s)<br />
[number+dot]+(2 or more spaces)+(~suffix)+(1 space)+(1 colon)+(2 or more spaces)+definition(s)<br />
[number+dot]+(2 or more spaces)+(~suffix)+(1 space)+(0 colon)+(2 or more spaces)+definition(s)<br />
…<br />
…<br />
and all other permutations :(</p>
</li>
</ul>
]]></description><link>https://community.notepad-plus-plus.org/post/41757</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/41757</guid><dc:creator><![CDATA[glossar]]></dc:creator><pubDate>Sun, 31 Mar 2019 11:39:02 GMT</pubDate></item><item><title><![CDATA[Reply to Regex for dictionary entries on Sun, 31 Mar 2019 04:23:08 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="/user/glossar" aria-label="Profile: glossar">@<bdi>glossar</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">Thanks for your <strong>additional</strong> hints ! So, here is my <strong>first</strong> try ! I will consider the <strong>TEST</strong> text, below :</p>
<pre><code class="language-diff">

bankrupt	1. huk. batkın, müflis, batmış, iflâs etmiş, bor
çlarını ödeye
meyen kimse, to go ~ : batmak, iflâs etmek, to be ~ : yoksun olmak. He seems to be ~ of all kind feelings : Her türlü asil duygulardan yoksun görünüyor. fraudulent/negli-gent - : kötü niyetli batkın, hileli müflis, 2. meteliksiz, 3. yoksun, mahrum, düşkün, an ~ intellectual: fikir yoksunu. ~ of intelligence : akılsız, a moral ~ : ahlâk düşkünü, to be - of manners : terbiyeden yoksun olmak, 4. batırmak, iflâs ettirmek, yoksun bırakmak, mahvetmek. His embezzlement ~ed the company : Zimmetine para geçirmesi şirketi batırdı/iflâs ettirdi. 5. ~ly : müflisane, iflâs ede-rek/etmişçesine. 6. ~able : müflisane, iflâs ede-rek/etmişçesine.



bankrupt	1. huk. batkın, müflis, batmış, iflâs etmiş, borçlarını ödeyemeyen kimse, to go ~ : batmak, iflâs etmek, to be ~ : yoksun olmak. He seems to be ~ of all kind fee
lings : Her türlü asil duygulardan yoksun görünüyor. fraudulent/negli-gent - : kötü niyetli batkın, hileli müflis, 2. meteliksiz, 3. yoksun, mahrum, düşkün, an ~ intellectual: fikir yoksunu. ~ of intelligence : akılsız, a moral ~ : ahlâk düşkünü, to be - of manners : terbiyeden yoksun olmak, 4. batırmak, iflâs ettirmek, yoksun bırakmak, mahvetmek. His embezzlement ~ed the company : Zimmetine para geçirmesi şirketi batırdı/iflâs ettirdi. 5. ~ly : müflisane, iflâs ede-rek/etmişçesine, to be ~ : yoksun olmak. 6. ~able : müflisane, iflâs ede-rek/etmişçesine, to be ~ : yoksun olmak.
</code></pre>
<hr />
<p dir="auto">In that <strong>TEST</strong> text, <a class="plugin-mentions-user plugin-mentions-a" href="/user/glossar" aria-label="Profile: glossar">@<bdi>glossar</bdi></a>, you’ll notice <strong>several</strong> particularities :</p>
<ul>
<li>
<p dir="auto">I duplicated the <strong><code>bankrupt</code></strong> header word, with some <strong>line-breaks</strong>, between, to simulate a <strong>second</strong> header word, below the <strong>first</strong> one !</p>
</li>
<li>
<p dir="auto">In the <strong>first</strong> <strong><code>bankrupt</code></strong> header word, I decided to <strong>split</strong> text, that you want to keep, <strong>twice</strong>. So you get the text :</p>
</li>
</ul>
<pre><code class="language-diff">bankrupt	1. huk. batkın, müflis, batmış, iflâs etmiş, bor
çlarını ödeye
meyen kimse, to go ~ : batmak, iflâs etmek,.......
</code></pre>
<ul>
<li>In the <strong>second</strong> <strong><code>bankrupt</code></strong> header word, I decided to <strong>split</strong> text, that you want to get rid of, <strong>once</strong>. So you get the text :</li>
</ul>
<pre><code class="language-diff">bankrupt	1. huk. batkın, müflis, batmış, iflâs etmiş, borçlarını ödeyemeyen kimse, to go ~ : batmak, iflâs etmek, to be ~ : yoksun olmak. He seems to be ~ of all kind fee
lings : Her türlü asil duygulardan yoksun görünüyor........
</code></pre>
<ul>
<li>In the <strong>two</strong> <strong><code>bankrupt</code></strong> header words, I <strong>added</strong>, at the <strong>end</strong> of the definitions, the part :</li>
</ul>
<pre><code class="language-diff"> 6. ~able : müflisane, iflâs ede-rek/etmişçesine.
</code></pre>
<p dir="auto">to simulate a <strong>third</strong> header word <strong><code>bankruptable</code></strong> ( BTW, from <strong>DSpellcheck</strong> it’s <strong>not</strong> a correct <strong>English</strong> word ! )</p>
<ul>
<li>Finally, in the <strong>second</strong> <strong><code>bankrupt</code></strong> header word, I also <strong>added</strong>, at the <strong>end</strong> of the <strong><code>5.</code></strong> and <strong>new</strong> <strong><code>6.</code></strong> definitions, the following <strong>rubbish</strong> text :</li>
</ul>
<pre><code class="language-diff">to be ~ : yoksun olmak.
</code></pre>
<p dir="auto">to simulate a part of text which we must to <strong>get rid of</strong> !</p>
<hr />
<p dir="auto">Now, let’s go, modifying that text, <strong>correctly</strong> ;-))</p>
<ul>
<li>
<p dir="auto">Move <strong>back</strong> to the <strong>very beginning</strong> of your words list ( <strong><code>Ctrl + Home</code></strong> )</p>
</li>
<li>
<p dir="auto">Open the <strong>Replace</strong> dialog ( <strong><code>Ctrl + H</code></strong> )</p>
</li>
<li>
<p dir="auto"><strong>Uncheck</strong> the <strong><code>Wrap around </code></strong> option</p>
</li>
<li>
<p dir="auto">SEARCH <strong><code>(\R)\R*(?=\w+\t)|\R(?=[^\t\r\n]+\R)</code></strong></p>
</li>
<li>
<p dir="auto">REPLACE <strong><code>?1\1</code></strong></p>
</li>
<li>
<p dir="auto">Click <strong>ONCE</strong> on the <strong><code>Replace All</code></strong> button</p>
</li>
</ul>
<p dir="auto">This <strong>first</strong> regex S/R will perform <strong>two</strong> things :</p>
<ul>
<li>
<p dir="auto">It will <strong>delete</strong> any <strong>line-break</strong> between <strong>header</strong> words</p>
</li>
<li>
<p dir="auto">It will <strong>delete</strong> any additional <strong>line-break</strong>, <strong>wrongly</strong> added during the <strong>conversion</strong> phase</p>
</li>
</ul>
<p dir="auto">So, you get the following text :</p>
<pre><code class="language-diff">bankrupt	1. huk. batkın, müflis, batmış, iflâs etmiş, borçlarını ödeyemeyen kimse, to go ~ : batmak, iflâs etmek, to be ~ : yoksun olmak. He seems to be ~ of all kind feelings : Her türlü asil duygulardan yoksun görünüyor. fraudulent/negli-gent - : kötü niyetli batkın, hileli müflis, 2. meteliksiz, 3. yoksun, mahrum, düşkün, an ~ intellectual: fikir yoksunu. ~ of intelligence : akılsız, a moral ~ : ahlâk düşkünü, to be - of manners : terbiyeden yoksun olmak, 4. batırmak, iflâs ettirmek, yoksun bırakmak, mahvetmek. His embezzlement ~ed the company : Zimmetine para geçirmesi şirketi batırdı/iflâs ettirdi. 5. ~ly : müflisane, iflâs ede-rek/etmişçesine. 6. ~able : müflisane, iflâs ede-rek/etmişçesine.
bankrupt	1. huk. batkın, müflis, batmış, iflâs etmiş, borçlarını ödeyemeyen kimse, to go ~ : batmak, iflâs etmek, to be ~ : yoksun olmak. He seems to be ~ of all kind feelings : Her türlü asil duygulardan yoksun görünüyor. fraudulent/negli-gent - : kötü niyetli batkın, hileli müflis, 2. meteliksiz, 3. yoksun, mahrum, düşkün, an ~ intellectual: fikir yoksunu. ~ of intelligence : akılsız, a moral ~ : ahlâk düşkünü, to be - of manners : terbiyeden yoksun olmak, 4. batırmak, iflâs ettirmek, yoksun bırakmak, mahvetmek. His embezzlement ~ed the company : Zimmetine para geçirmesi şirketi batırdı/iflâs ettirdi. 5. ~ly : müflisane, iflâs ede-rek/etmişçesine, to be ~ : yoksun olmak. 6. ~able : müflisane, iflâs ede-rek/etmişçesine, to be ~ : yoksun olmak.
</code></pre>
<hr />
<p dir="auto">The <strong>second</strong> regex S/R, below, will create the <strong>two new</strong> headers <strong><code>bankruptly</code></strong> and <strong><code>bankruptable</code></strong>, <strong>after</strong> each <strong><code>bankrupt</code></strong> header word  :</p>
<ul>
<li>
<p dir="auto">SEARCH <strong><code>(?s)(\w+)\t[^\t]+\K\x20\d+\.\x20~(\w+)\x20:</code></strong></p>
</li>
<li>
<p dir="auto">REPLACE <strong><code>\r\n\1\2\t1.</code></strong></p>
</li>
<li>
<p dir="auto">Click, <strong>SEVERAL</strong> times, on the <strong><code>Replace All</code></strong> button <strong>exclusively</strong> ( Do <strong>not</strong> use the <strong><code>Replace</code></strong> button ) till the message <strong><code>Replace All: 0 occurrence were replaced</code></strong> occurs ! ( In this example, you’ll need to click, <strong><code>3</code></strong> times )</p>
</li>
</ul>
<p dir="auto">You’ll obtain :</p>
<pre><code class="language-diff">bankrupt	1. huk. batkın, müflis, batmış, iflâs etmiş, borçlarını ödeyemeyen kimse, to go ~ : batmak, iflâs etmek, to be ~ : yoksun olmak. He seems to be ~ of all kind feelings : Her türlü asil duygulardan yoksun görünüyor. fraudulent/negli-gent - : kötü niyetli batkın, hileli müflis, 2. meteliksiz, 3. yoksun, mahrum, düşkün, an ~ intellectual: fikir yoksunu. ~ of intelligence : akılsız, a moral ~ : ahlâk düşkünü, to be - of manners : terbiyeden yoksun olmak, 4. batırmak, iflâs ettirmek, yoksun bırakmak, mahvetmek. His embezzlement ~ed the company : Zimmetine para geçirmesi şirketi batırdı/iflâs ettirdi.
bankruptly	1. müflisane, iflâs ede-rek/etmişçesine.
bankruptable	1. müflisane, iflâs ede-rek/etmişçesine.
bankrupt	1. huk. batkın, müflis, batmış, iflâs etmiş, borçlarını ödeyemeyen kimse, to go ~ : batmak, iflâs etmek, to be ~ : yoksun olmak. He seems to be ~ of all kind feelings : Her türlü asil duygulardan yoksun görünüyor. fraudulent/negli-gent - : kötü niyetli batkın, hileli müflis, 2. meteliksiz, 3. yoksun, mahrum, düşkün, an ~ intellectual: fikir yoksunu. ~ of intelligence : akılsız, a moral ~ : ahlâk düşkünü, to be - of manners : terbiyeden yoksun olmak, 4. batırmak, iflâs ettirmek, yoksun bırakmak, mahvetmek. His embezzlement ~ed the company : Zimmetine para geçirmesi şirketi batırdı/iflâs ettirdi.
bankruptly	1. müflisane, iflâs ede-rek/etmişçesine, to be ~ : yoksun olmak.
bankruptable	1. müflisane, iflâs ede-rek/etmişçesine, to be ~ : yoksun olmak.
</code></pre>
<hr />
<p dir="auto">Finally, the <strong>third</strong> regex S/R, below, should <strong>get rid of</strong> all text, containing <strong>bold/italic</strong> sections :</p>
<ul>
<li>
<p dir="auto">SEARCH <strong><code>(?&lt;=[,.])[\w\x20]+?~.+?(?=\x20\d+|\R|\z)</code></strong></p>
</li>
<li>
<p dir="auto">REPLACE <strong><code>Leave EMPTY</code></strong></p>
</li>
<li>
<p dir="auto">Click, <strong>ONCE</strong> on the <strong><code>Replace All</code></strong> button, <strong>exclusively</strong> ( Again, do <strong>not</strong> use the <strong><code>Replace</code></strong> button )</p>
</li>
</ul>
<p dir="auto">And… here is your <strong>expected</strong> text :</p>
<pre><code class="language-diff">bankrupt	1. huk. batkın, müflis, batmış, iflâs etmiş, borçlarını ödeyemeyen kimse, 2. meteliksiz, 3. yoksun, mahrum, düşkün, 4. batırmak, iflâs ettirmek, yoksun bırakmak, mahvetmek.
bankruptly	1. müflisane, iflâs ede-rek/etmişçesine.
bankruptable	1. müflisane, iflâs ede-rek/etmişçesine.
bankrupt	1. huk. batkın, müflis, batmış, iflâs etmiş, borçlarını ödeyemeyen kimse, 2. meteliksiz, 3. yoksun, mahrum, düşkün, 4. batırmak, iflâs ettirmek, yoksun bırakmak, mahvetmek.
bankruptly	1. müflisane, iflâs ede-rek/etmişçesine,
bankruptable	1. müflisane, iflâs ede-rek/etmişçesine,
</code></pre>
<p dir="auto">Now, give it a <strong>try</strong> of these <strong><code>3</code></strong> regexes , against your <strong>real</strong> text and <strong>verify</strong> if some problems <strong>still</strong> remain ;-))</p>
<p dir="auto">See you later,</p>
<p dir="auto">Cheers,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/41748</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/41748</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sun, 31 Mar 2019 04:23:08 GMT</pubDate></item><item><title><![CDATA[Reply to Regex for dictionary entries on Sat, 30 Mar 2019 21:49:29 GMT]]></title><description><![CDATA[<p dir="auto">Hi guy,<br />
Thank you.<br />
To answer your questions:</p>
<ul>
<li>
<p dir="auto">A) : No, but you can assume that they are so, since the majority of them are placed so. I can gladly ignore and delete the ones in the end, which don’t follow the pattern in question, or I might visually go through and fix them manually if it would be worth it. But just in case you could do a magic with regex and fix the ones with a line-break between as well, there are some entries like below (again, due to the distortion/loss arisen from the conversion):<br />
<strong>bankrupt</strong>[tab]1. huk. batkın, müflis, batmış, iflâs etmiş, bor<br />
<strong>çlarını</strong> ödeyemeyen kimse, to go ~ : batmak, iflâs etmek, to be ~ : yoksun olmak. He seems to be ~ of all kind feelings : Her türlü asil duygulardan yoksun görünüyor. fraudulent/negli-gent - : kötü niyetli batkın, hileli müflis,<br />
<strong>2.</strong> meteliksiz, 3. yoksun, mahrum, düşkün, an ~ intellectual: fikir<br />
yoksunu. ~ of intelligence : akılsız, a moral ~ : ahlâk<br />
düşkünü, to be - of manners : terbiyeden yoksun olmak, 4. batırmak, iflâs ettirmek, yoksun bırakmak, mahvetmek. His embezzlement ~ed the company : Zimmetine para geçirmesi şirketi batırdı/iflâs ettirdi. <strong>5. ~ly</strong> : müflisane, iflâs ede-rek/etmişçesine.</p>
</li>
<li>
<p dir="auto">B) : Yes, the headwords always begin the lines.</p>
</li>
<li>
<p dir="auto">C) :<br />
<strong>TABULATION</strong> + (0 space/char) + <strong>1.</strong> + (<strong>0</strong> or <strong>1</strong> or <strong>more</strong> chars/spaces) + <strong>definition(s)</strong>… ( case of <strong>bankrupt</strong> header )<br />
<strong>TABULATION</strong> + (0 space/char) + (<strong>0</strong> or <strong>1</strong> number followed by a dot) + (<strong>0</strong> or <strong>1</strong> or <strong>more</strong> chars/spaces) + <strong>definition(s)</strong>… ( case of <strong>bankruptly</strong> header )</p>
</li>
</ul>
]]></description><link>https://community.notepad-plus-plus.org/post/41744</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/41744</guid><dc:creator><![CDATA[glossar]]></dc:creator><pubDate>Sat, 30 Mar 2019 21:49:29 GMT</pubDate></item><item><title><![CDATA[Reply to Regex for dictionary entries on Sat, 30 Mar 2019 20:32:04 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="/user/glossar" aria-label="Profile: glossar">@<bdi>glossar</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">Thanks for following my <strong>advice</strong> which allows anyone of us to grab your <strong>plain</strong> text !</p>
<p dir="auto">I’ve <strong>already</strong> figured out how to do, with <strong>two</strong> regexes, but I still need some pieces of <strong>information</strong></p>
<ul>
<li>
<p dir="auto"><strong>A)</strong> : Are all the <strong>present</strong> headword’s definitions, placed <strong>one</strong> after <strong>another</strong>, <strong>without</strong> any <strong>line-break</strong>, between  or else ?</p>
</li>
<li>
<p dir="auto"><strong>B)</strong> : Do the <strong>present</strong> headwords <strong>always</strong> begin the lines or could it be some <strong>blank</strong> characters, <strong>before</strong> each headword ?</p>
</li>
<li>
<p dir="auto"><strong>C)</strong> : <strong>Right after</strong> each headword, is the <strong>present</strong> sequence of characters always :</p>
<ul>
<li>
<p dir="auto"><strong><code>TABULATION</code></strong> char + the string <strong><code>1.</code></strong> + a <strong><code>SPACE</code></strong> char + <strong>definition(s)</strong>…  ( case of <strong>bankrupt</strong> header )</p>
</li>
<li>
<p dir="auto"><strong><code>TABULATION</code></strong> char + <strong>definition(s)</strong>…  ( case of <strong>bankruptly</strong> header )</p>
</li>
</ul>
</li>
</ul>
<p dir="auto">or anything else ? For instance <strong>spaces</strong> before and/or after the <strong>tabulation</strong> character ?</p>
<p dir="auto">BR</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/41742</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/41742</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sat, 30 Mar 2019 20:32:04 GMT</pubDate></item><item><title><![CDATA[Reply to Regex for dictionary entries on Sat, 30 Mar 2019 18:38:34 GMT]]></title><description><![CDATA[<p dir="auto">Hi guy,<br />
Thank you for reply. Below I’ve posted the texts the way you told. It is my bad that I didn’t post a workable text, but screenshots for visual convenience. The original file is a pdf, scanned from a hard copy of a bilingual dictionary, which is further converted to a Word file, which is further saved as a html/txt file for processing. There are still repeated patterns to a usable degree in the converted Word file and the html/txt one, while the said conversation introduced falsely OCR-ed characters and distorted the format a bit. I’m aware that formatting gets lost in plain text and that regex has nothing to do with formatting. In my previous posts I forgot to mention that the first screenshot was taken from the word life and I would welcome any (sort of) regex that I could also implement within Word, in combination with format selection, hence my mentioning the formatting.</p>
<p dir="auto">BTW, the numbers for suffixes (-ly, -ness, -ship, etc.) before the tilde character is either one or two digits.</p>
<pre><code class="language-diff">From the INITIAL text:

bankrupt [tab] 1. huk. batkın, müflis, batmış, iflâs etmiş, borçlarını ödeyemeyen kimse, to go ~ : batmak, iflâs etmek, to be ~ : yoksun olmak. He seems to be ~ of all kind feelings : Her türlü asil duygulardan yoksun görünüyor. fraudulent/negli-gent - : kötü niyetli batkın, hileli müflis, 2. meteliksiz, 3. yoksun, mahrum, düşkün, an ~ intellectual: fikir yoksunu. ~ of intelligence : akılsız, a moral ~ : ahlâk düşkünü, to be - of manners : terbiyeden yoksun olmak, 4. batırmak, iflâs ettirmek, yoksun bırakmak, mahvetmek. His embezzlement ~ed the company : Zimmetine para geçirmesi şirketi batırdı/iflâs ettirdi. 5. ~ly : müflisane, iflâs ede-rek/etmişçesine.

I would like this EXPECTED text preferably: :)

bankrupt [tab] 1. huk. batkın, müflis, batmış, iflâs etmiş, borçlarını ödeyemeyen kimse, 2. meteliksiz, 3. yoksun, mahrum, düşkün 4. batırmak, iflâs ettirmek, yoksun bırakmak, mahvetmek.
bankruptly [tab] müflisane, iflâs ede-rek/etmişçesine.


if the above one is not possible, then I would like this EXPECTED text: :)
bankrupt [tab] 1. huk. batkın, müflis, batmış, iflâs etmiş, borçlarını ödeyemeyen kimse, to go ~ : batmak, iflâs etmek, to be ~ : yoksun olmak. He seems to be ~ of all kind feelings : Her türlü asil duygulardan yoksun görünüyor. fraudulent/negli-gent - : kötü niyetli batkın, hileli müflis, 2. meteliksiz, 3. yoksun, mahrum, düşkün, an ~ intellectual: fikir yoksunu. ~ of intelligence : akılsız, a moral ~ : ahlâk düşkünü, to be - of manners : terbiyeden yoksun olmak, 4. batırmak, iflâs ettirmek, yoksun bırakmak, mahvetmek. His embezzlement ~ed the company : Zimmetine para geçirmesi şirketi batırdı/iflâs ettirdi.
bankruptly [tab] müflisane, iflâs ede-rek/etmişçesine.</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/41738</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/41738</guid><dc:creator><![CDATA[glossar]]></dc:creator><pubDate>Sat, 30 Mar 2019 18:38:34 GMT</pubDate></item><item><title><![CDATA[Reply to Regex for dictionary entries on Wed, 02 Jun 2021 20:59:00 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/glossar" aria-label="Profile: glossar">@<bdi>glossar</bdi></a>,</p>
<p dir="auto"><strong>Regular</strong> expressions are very <strong>powerful</strong>, indeed ! But, unfortunately, cannot detect <strong>bold</strong> and <em>italic</em> variations of a <strong>font</strong> :-(( So, we’ll have to find out <strong>common</strong> boundaries for theses zones !</p>
<p dir="auto">Now, as I <strong>cannot</strong> really exploit your two <strong>pictures</strong> ( <strong>not</strong> true text ! ), I advice you to post an example of your <strong>initial</strong> text and the <strong>resulting</strong> text that you <strong>expect</strong> to, after <strong>one</strong> or <strong>several</strong> consecutive regex S/R !</p>
<p dir="auto">Simply, use <strong>this</strong> syntax, to get <strong>raw</strong> text, <strong>not</strong> processed in any way :</p>
<p dir="auto">~~~diff<br />
From the INITIAL text :</p>
<p dir="auto">Your<br />
…<br />
text<br />
…<br />
here</p>
<p dir="auto">I would like this EXPECTED text :</p>
<p dir="auto">Your<br />
…<br />
changed<br />
…<br />
text<br />
~~~</p>
<p dir="auto">which will be displayed as :</p>
<pre><code class="language-diff">From the INITIAL text :

Your
...
text
...
here

I would like this EXPECTED text :

Your
...
changed
...
text
</code></pre>
<hr />
<p dir="auto">If you prefer, just send me some of your examples, by <strong>e-mail</strong>, to :</p>
<p dir="auto">But, please, associate each exact <strong>AFTER</strong> text, that you want, to its exact <strong>BEFORE</strong> text, that you get ;-))</p>
<p dir="auto">Remember that sometimes, an <strong>additional</strong> or a <strong>missing single</strong> character may cause <strong>regular</strong> expressions to <strong>fail</strong> !</p>
<p dir="auto">See you later,</p>
<p dir="auto">Best regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/41729</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/41729</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Wed, 02 Jun 2021 20:59:00 GMT</pubDate></item><item><title><![CDATA[Reply to Regex for dictionary entries on Fri, 29 Mar 2019 21:53:52 GMT]]></title><description><![CDATA[<p dir="auto">I can’t edit my previous post. I meant “headword” instead of “main entry”.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/41726</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/41726</guid><dc:creator><![CDATA[glossar]]></dc:creator><pubDate>Fri, 29 Mar 2019 21:53:52 GMT</pubDate></item></channel></rss>