<?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[need some help with regular expressions]]></title><description><![CDATA[<p dir="auto">I need some help with regular expressions for the sake of editing a Wikipedia article.</p>
<p dir="auto">I need to replace each instance of</p>
<pre><code>&lt;ref&gt;AS, Rn. *, S. *.&lt;/ref&gt;
</code></pre>
<p dir="auto">with</p>
<pre><code>{{sfn|Wirtz|2017|loc=Rn. *|S=*}}
</code></pre>
<p dir="auto">where * represent numbers</p>
<p dir="auto">but hereby not ruin any different &lt;ref&gt;&lt;/ref&gt;s.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/22254/need-some-help-with-regular-expressions</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 20:57:02 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/22254.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 11 Dec 2021 00:33:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to need some help with regular expressions on Sat, 11 Dec 2021 22:53:45 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/6668">@eugene-fishgalov</a>, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/12335">@terry-r</a> and <strong>All</strong></p>
<p dir="auto">Thanks for your <strong>two</strong> examples, but I still couldn’t imagine the general goal :-(. Here is how I proceeded to get a <strong>better</strong> idea of the problem :</p>
<ul>
<li>
<p dir="auto">Firstly, I copied all your <strong><code>Wikipedia</code></strong> article in a <strong>new</strong> tab.</p>
</li>
<li>
<p dir="auto">Secondly, I <strong>marked</strong> all the ranges <strong><code>&lt;ref&gt;•••••••&lt;/ref&gt;</code></strong> with the regex <strong><code>&lt;ref&gt;.*?&lt;/ref&gt;</code></strong> in red ( <strong><code>Ctrl + M</code></strong> )</p>
</li>
<li>
<p dir="auto">I then clicked on the <strong><code>Copy Marked Text</code></strong> button</p>
</li>
<li>
<p dir="auto">After pasting, I <strong>sorted</strong> all these lines ( <strong><code>Edit &gt; Lines Operations &gt; Sort Lines Lexicographically Ascending</code></strong> )</p>
</li>
<li>
<p dir="auto">I re-organized some <strong>adjacent ranges</strong> <strong><code>&lt;ref&gt;•••••••&lt;/ref&gt;</code></strong> <strong>one</strong> per line</p>
</li>
<li>
<p dir="auto">Finally I tried to manually <strong>sort</strong> this list by <strong>similarity</strong> and I got :</p>
</li>
</ul>
<pre><code class="language-z">&lt;ref&gt;AS, Rn. 120, S. 57.&lt;/ref&gt;
&lt;ref&gt;AS, Rn. 127 S. 60&lt;/ref&gt;
&lt;ref&gt;AS, Rn. 127 S. 60&lt;/ref&gt;
&lt;ref&gt;AS, Rn. 129 S. 61&lt;/ref&gt;
&lt;ref&gt;AS, Rn. 130 S. 62&lt;/ref&gt;
&lt;ref&gt;AS, Rn. 131 S. 62&lt;/ref&gt;
&lt;ref&gt;AS, Rn. 131 S. 62&lt;/ref&gt;
&lt;ref&gt;AS, Rn. 132 S. 62&lt;&lt;/ref&gt;
&lt;ref&gt;AS, Rn. 134 S. 63&lt;/ref&gt;
&lt;ref&gt;AS, Rn. 142, S. 71.&lt;/ref&gt;
&lt;ref&gt;AS, Rn. 151, S. 77.&lt;/ref&gt;

&lt;ref&gt;AS, S. 101, Rn. 186.&lt;/ref&gt;
&lt;ref&gt;AS, S. 102, Rn. 189.&lt;/ref&gt;
&lt;ref&gt;AS, S. 102, Rn. 190.&lt;/ref&gt;
&lt;ref&gt;AS, S. 105, Rn. 194.&lt;/ref&gt;
&lt;ref&gt;AS, S. 106, Rn. 195-196.&lt;/ref&gt;
&lt;ref&gt;AS, S. 82, Rn. 159, Fn. 238.&lt;/ref&gt;
&lt;ref&gt;AS, S. 82, Rn. 159.&lt;/ref&gt;
&lt;ref&gt;AS, S. 83, Rn. 161.&lt;/ref&gt;
&lt;ref&gt;AS, S. 84, Rn. 161.&lt;/ref&gt;
&lt;ref&gt;AS, S. 87, Rn. 164; S. 99; Rn. 184.&lt;/ref&gt;
&lt;ref&gt;AS, S. 93, Rn. 174.&lt;/ref&gt;
&lt;ref&gt;AS, S. 93-94, Rn. 175.&lt;/ref&gt;
&lt;ref&gt;AS, S. 97, Rn. 180.&lt;/ref&gt;
&lt;ref&gt;AS, S. 98, Rn. 181.&lt;/ref&gt;
&lt;ref&gt;AS, S. 98, Rn. 182.&lt;/ref&gt;

&lt;ref&gt;BGHZ 40, 272; 50, 227; 56, 228; 72, 246.&lt;/ref&gt;
&lt;ref&gt;BGHZ 58, 188&lt;/ref&gt;

&lt;ref&gt;Baur/Stürner, Sachenrecht, 18. Aufl. 2009, § 37 Rn. 48; Vieweg/Werner, Sachenrecht; 7. Aufl. 2015, § 15 Rn. 27&lt;/ref&gt;
&lt;ref&gt;Büdenbender, Grundsätze des Hypothekenrechts, JuS 1996, 665.&lt;/ref&gt;
&lt;ref&gt;MüKoBGB/Lieder, 7. Aufl. 2017, § 1113 Rn. 83; Baur/Stürner, Sachenrecht, 18. Aufl. 2009, § 37 Rn. 48; Rimmelspacher, Kreditsicherungsrecht, 2. Aufl. 1987, § 10 Rn. 711 ff.&lt;/ref&gt;

&lt;ref&gt;Rimmelspacher, Kreditsicherungsrecht, 2. Aufl. 1987, Rn. 714; Vieweg/Werner, Sachenrecht, 7. Aufl. 2015, § 15 Rn. 27.&lt;/ref&gt;
&lt;ref&gt;Rimmelspacher, Kreditsicherungsrecht, 2. Aufl. 1987, Rn. 714; Vieweg/Werner, Sachenrecht, 7. Aufl. 2015, § 15 Rn. 27.&lt;/ref&gt;

&lt;ref&gt;Vieweg/Werner, Sachenrecht, 7. Aufl. 2015, § 15 Rn. 27&lt;/ref&gt;

&lt;ref&gt;&lsqb;&lsqb;:Файл:RGZ 150, 1.pdf|RGZ 150, 1&rsqb;&rsqb;; BGH [https://dejure.org/1982,163 NJW 1983, 1420].&lt;/ref&gt;
&lt;ref&gt;&lsqb;&lsqb;:Файл:RGZ 161, 52.pdf|RGZ 161, 52&rsqb;&rsqb;; [https://dejure.org/1958,549 BGHZ 28, 164]; [https://dejure.org/2015,13297 BGHZ 206, 69].&lt;/ref&gt;

&lt;ref&gt;[https://dejure.org/1959,456 BGHZ 29, 157]&lt;/ref&gt;
&lt;ref&gt;[https://dejure.org/1963,7 BGHZ 40, 272]&lt;/ref&gt;
&lt;ref&gt;[https://dejure.org/1970,170 BGHZ 53, 144]; [https://dejure.org/1971,21 57, 137]&lt;/ref&gt;
&lt;ref&gt;[https://dejure.org/1971,21 BGHZ 57, 137]&lt;/ref&gt;
&lt;ref&gt;[https://dejure.org/1973,48 BGHZ 61, 289]&lt;/ref&gt;
&lt;ref&gt;[https://dejure.org/1976,124 BGHZ 66, 362];  [https://dejure.org/1976,156 66, 372];  [https://dejure.org/1976,288 67, 75];  [https://dejure.org/1983,140 87, 393, 396];  [https://dejure.org/1983,362 88, 232, 235]&lt;/ref&gt;
&lt;ref&gt;[https://dejure.org/1978,150 BGHZ 72, 9, 12]&lt;/ref&gt;
&lt;ref&gt;[https://dejure.org/1980,384 BGHZ 78, 216]&lt;/ref&gt;
&lt;ref&gt;[https://dejure.org/1983,362 BGHZ 88, 232, 236]&lt;/ref&gt;
&lt;ref&gt;[https://dejure.org/1984,281 BGHZ 89, 376]; [https://dejure.org/1984,915 BGH NJW 1984, 2205]&lt;/ref&gt;
&lt;ref&gt;[https://dejure.org/1994,893 BGHZ 126, 105]&lt;/ref&gt;
&lt;ref&gt;[https://dejure.org/2001,9 BGH NJW 2001, 1127]&lt;/ref&gt;
&lt;ref&gt;[https://dejure.org/2002,1296 BGH NJW 2002, 3772]; [https://dejure.org/2003,62 BGHZ 155, 380]; MüKoBGB, § 814, Rn. 12.&lt;/ref&gt;
&lt;ref&gt;[https://dejure.org/2008,1843 BGH, 13.02.2008 - VIII ZR 208/07, NJW 2008, 1878].&lt;/ref&gt;
&lt;ref&gt;[https://dejure.org/2015,20967 BGHZ 205, 377]&lt;/ref&gt;
&lt;ref&gt;[https://dejure.org/2015,4962 BGH, 04.03.2015 - XII ZR 46/13, NJW 2015, 1523.]&lt;/ref&gt;
&lt;ref&gt;https://lorenz.userweb.mwn.de/urteile/vizr36_00.htm&lt;/ref&gt;

&lt;ref&gt;В данном случае речь идёт не (обязательно) о договоре поручения, а о «указании» в описанном выше кондикционно-правовом смысле. Немецкие термины Anweisender, Angewiesener и Zuwendungsempfänger используются только в рамках этого специфического института, тогда как доверитель и поверенный в собственно-юридическом смысле называются Auftraggeber и Auftragnehmer.&lt;/ref&gt;
&lt;ref&gt;В дореволюционном переводе: https://viewer.rusneb.ru/ru/rsl01003642821?page=193 — «удовлетворение»&lt;/ref&gt;
&lt;ref&gt;В нем. юриспруденции согласно так называемому «горизонту получателя», нем. Empfängerhorizont.&lt;/ref&gt;

&lt;ref&gt;За применение кондикции: [https://dejure.org/1973,841 BGH NJW 1973, 612]; за правило о нарушении основания сделок как специальный закон: [https://dejure.org/1992,508 BGH NJW 1992, 2690].&lt;/ref&gt;
&lt;ref&gt;Основанные на: Westermann, Sachenrecht, 5. Aufl. § 128 III 1; Baur, Sachenrecht, 4. Aufl, § 55 B II 2 a&lt;/ref&gt;
&lt;ref&gt;Со ссылкой на Kregel in RGRK 11. Aufl. Anm. 8; Staudinger/Spreng, 11. Aufl. Rdz. 10; Palandt/Degenhart, 27. Aufl. Anm. 3 a und Erman/Rinke, 2. Aufl. Anm. 3, к § 1204 ГГУ.&lt;/ref&gt;
</code></pre>
<hr />
<p dir="auto">I, then, understood that we should stay <strong>concentrated</strong> on the <strong><code>&lt;ref&gt;AS, •••••••&lt;/ref&gt;</code></strong> ranges, <strong>only</strong> ! so, after a <strong>manual</strong> sorting, I got the <strong>shorter</strong> list, below :</p>
<pre><code class="language-z">&lt;ref&gt;AS, Rn. 127 S. 60&lt;/ref&gt;
&lt;ref&gt;AS, Rn. 127 S. 60&lt;/ref&gt;
&lt;ref&gt;AS, Rn. 129 S. 61&lt;/ref&gt;
&lt;ref&gt;AS, Rn. 130 S. 62&lt;/ref&gt;
&lt;ref&gt;AS, Rn. 131 S. 62&lt;/ref&gt;
&lt;ref&gt;AS, Rn. 131 S. 62&lt;/ref&gt;
&lt;ref&gt;AS, Rn. 132 S. 62&lt;&lt;/ref&gt;
&lt;ref&gt;AS, Rn. 134 S. 63&lt;/ref&gt;

&lt;ref&gt;AS, Rn. 120, S. 57.&lt;/ref&gt;
&lt;ref&gt;AS, Rn. 142, S. 71.&lt;/ref&gt;
&lt;ref&gt;AS, Rn. 151, S. 77.&lt;/ref&gt;


&lt;ref&gt;AS, S. 82, Rn. 159.&lt;/ref&gt;
&lt;ref&gt;AS, S. 83, Rn. 161.&lt;/ref&gt;
&lt;ref&gt;AS, S. 84, Rn. 161.&lt;/ref&gt;
&lt;ref&gt;AS, S. 93, Rn. 174.&lt;/ref&gt;
&lt;ref&gt;AS, S. 97, Rn. 180.&lt;/ref&gt;
&lt;ref&gt;AS, S. 98, Rn. 181.&lt;/ref&gt;
&lt;ref&gt;AS, S. 98, Rn. 182.&lt;/ref&gt;
&lt;ref&gt;AS, S. 101, Rn. 186.&lt;/ref&gt;
&lt;ref&gt;AS, S. 102, Rn. 189.&lt;/ref&gt;
&lt;ref&gt;AS, S. 102, Rn. 190.&lt;/ref&gt;
&lt;ref&gt;AS, S. 105, Rn. 194.&lt;/ref&gt;

&lt;ref&gt;AS, S. 106, Rn. 195-196.&lt;/ref&gt;

&lt;ref&gt;AS, S. 93-94, Rn. 175.&lt;/ref&gt;

&lt;ref&gt;AS, S. 82, Rn. 159, Fn. 238.&lt;/ref&gt;

&lt;ref&gt;AS, S. 87, Rn. 164; S. 99; Rn. 184.&lt;/ref&gt;
</code></pre>
<hr />
<p dir="auto">Note that <strong>one</strong> line contains a <strong>wrong</strong> ending tag <strong><code>&lt;&lt;/ref&gt;</code></strong>. You can easily modify these lines with the <strong>regex</strong> S/R :</p>
<p dir="auto">SEARCH <strong><code>(&lt;+)|&gt;+</code></strong></p>
<p dir="auto">REPLACE <strong><code>?1&lt;:&gt;</code></strong></p>
<p dir="auto">Now, I succeeded to find out a <strong>correct</strong> regex S/R for <strong>almost</strong> all the <strong>above</strong> lines. However, could you tell me <strong>how</strong> to change the <strong>two</strong> lines , below :</p>
<pre><code class="language-diff">&lt;ref&gt;AS, S. 82, Rn. 159, Fn. 238.&lt;/ref&gt;

&lt;ref&gt;AS, S. 87, Rn. 164; S. 99; Rn. 184.&lt;/ref&gt;
</code></pre>
<p dir="auto">For all the <strong>other</strong> cases, my regex S/R do give the <strong>expected</strong> result ;-))</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/72050</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/72050</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sat, 11 Dec 2021 22:53:45 GMT</pubDate></item><item><title><![CDATA[Reply to need some help with regular expressions on Sat, 11 Dec 2021 16:01:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/12335">@terry-r</a> Yes. For instance,</p>
<pre><code>&lt;ref&gt;AS, Rn. 130 S. 62&lt;/ref&gt;
</code></pre>
<p dir="auto">should be</p>
<pre><code>{{sfn|Wirtz|2017|loc=Rn. 130|S=62}
</code></pre>
<p dir="auto">And</p>
<pre><code>&lt;ref&gt;AS, S. 106, Rn. 195-196.&lt;/ref&gt;
</code></pre>
<p dir="auto">should be</p>
<pre><code>{{sfn|Wirtz|2017|loc=Rn. 195-196|S=106}
</code></pre>
<p dir="auto">You are welcome to look into the actual wiki-code: <a href="https://ru.wikipedia.org/w/index.php?title=%D0%A3%D1%87%D0%B0%D1%81%D1%82%D0%BD%D0%B8%D0%BA:Eugrus/%D0%9D%D0%B5%D0%BE%D1%81%D0%BD%D0%BE%D0%B2%D0%B0%D1%82%D0%B5%D0%BB%D1%8C%D0%BD%D0%BE%D0%B5_%D0%BE%D0%B1%D0%BE%D0%B3%D0%B0%D1%89%D0%B5%D0%BD%D0%B8%D0%B5_%D0%B2_%D0%BF%D1%80%D0%B0%D0%B2%D0%B5_%D0%93%D0%B5%D1%80%D0%BC%D0%B0%D0%BD%D0%B8%D0%B8&amp;action=edit" rel="nofollow ugc">https://ru.wikipedia.org/w/index.php?title=Участник:Eugrus/Неосновательное_обогащение_в_праве_Германии&amp;action=edit</a></p>
]]></description><link>https://community.notepad-plus-plus.org/post/72048</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/72048</guid><dc:creator><![CDATA[Eugene Fishgalov]]></dc:creator><pubDate>Sat, 11 Dec 2021 16:01:04 GMT</pubDate></item><item><title><![CDATA[Reply to need some help with regular expressions on Sat, 11 Dec 2021 00:55:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/6668">@eugene-fishgalov</a> said in <a href="/post/72041">need some help with regular expressions</a>:</p>
<blockquote>
<p dir="auto">I need some help with regular expressions for the sake of editing a Wikipedia article.</p>
</blockquote>
<p dir="auto">Can you provide several examples before the changes and what they should look like after the changes are made. At the moment I’m having diffuclty in understanding exactly what you need.</p>
<p dir="auto">Terry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/72042</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/72042</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Sat, 11 Dec 2021 00:55:20 GMT</pubDate></item></channel></rss>