<?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 help for batch editing]]></title><description><![CDATA[<p dir="auto">Hello, i’d like to edit a number that is located in a particular position in a text. i’d like to edit the number located after the first 2 commas in the text below<br />
below you can see lines that correspond to objects carateristics in a game. i’d like to edit in a row the number that is in number 2000 position. i know i could use in that particular case the search and replace option. but in some cases that number doesn’t correspond to 2000, but to another number. so i’d like to edit the number located in each line after the first 2 commas. is this possible</p>
<p dir="auto">plage, plage, 2000, 12582912, 0, 275.112, 43.6829, 0.57576, 1568.3, 1491.7, 29.7886, 921.708, 767.69, 15.1822, 970.818, null<br />
plage0, plage, 2000, 12582912, 0, -470.48, -690.498, -16.542, 470.48, 690.498, 16.542, 0.0, 0.00012207, 4.76837e-007, 835.711, null<br />
plage1, plage, 2000, 12582912, 0, -456.201, -769.794, -15.5455, 456.201, 769.794, 15.5455, 0.0, 0.0, -4.76837e-007, 894.955, null<br />
plage2, plage, 2000, 12582912, 0, -788.48, -1012.48, -16.8566, 788.48, 1012.48, 16.8566, 0.0, 0.0, -4.76837e-007, 1283.39, null<br />
plage3, plage, 2000, 12582912, 0, -716.8, -680.96, -16.7993, 716.8, 680.96, 16.7993, 0.0, 0.0, 0.0, 988.833, null<br />
plage4, plage, 2000, 12582912, 0, -788.48, -430.08, -17.4505, 788.48, 430.08, 17.4505, 0.0, -0.000244141, 4.76837e-007, 898.317, null<br />
plage5, plage, 2000, 12582912, 0, -788.48, -286.72, -16.8566, 788.48, 286.72, 16.8566, 0.0, 0.0, -4.76837e-007, 839.162, null<br />
plage6, plage, 2000, 12582912, 0, -788.48, -756.566, -16.8566, 788.48, 756.565, 16.8566, 0.0, 0.0, -4.76837e-007, 1092.88, null<br />
plage7, plage, 2000, 12582912, 0, -415.092, -669.848, -2.35125, 415.092, 669.848, 2.35125, 0.0, 0.0, 0.0, 788.038, null<br />
plage8, plage, 2000, 12582912, 0, -323.538, -698.055, -1.83764, 323.538, 698.055, 1.83764, 0.0, 0.0, 0.0, 769.39, null<br />
plage9, plage, 2000, 12582912, 0, -344.821, -653.995, -2.31168, 344.821, 653.995, 2.31168, 0.0, 0.0, 0.0, 739.335, null<br />
plage10, plage, 2000, 12582912, 0, -414.529, -697.8, -3.58363, 414.53, 697.8, 3.58363, 0.0, 0.00012207, 0.0, 811.648, null<br />
plage11, plage, 2000, 12582912, 0, -429.283, -679.338, -4.19869, 429.282, 679.338, 4.1987, 0.0, 0.0, 0.0, 803.618, null<br />
plage12, plage, 2000, 12582912, 0, -650.986, -725.165, -29.6797, 650.987, 725.165, 29.6797, 0.0, 0.0, -9.53674e-007, 974.951, null</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/12183/need-help-for-batch-editing</link><generator>RSS for Node</generator><lastBuildDate>Sun, 13 Sep 2026 17:52:04 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/12183.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 07 Aug 2016 01:24:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to need help for batch editing on Tue, 09 Aug 2016 00:31:27 GMT]]></title><description><![CDATA[<p dir="auto">ok, merci/thanks</p>
]]></description><link>https://community.notepad-plus-plus.org/post/17137</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/17137</guid><dc:creator><![CDATA[Mambiteño Juan-pablo]]></dc:creator><pubDate>Tue, 09 Aug 2016 00:31:27 GMT</pubDate></item><item><title><![CDATA[Reply to need help for batch editing on Sun, 07 Aug 2016 20:30:47 GMT]]></title><description><![CDATA[<p dir="auto">Hello <strong>Mambiteño Juan-pablo</strong>,</p>
<p dir="auto">Very easy, indeed !</p>
<p dir="auto">The part of your list, below, is <strong>well-delimited</strong>, by commas, in <strong>13</strong> rows of <strong>16</strong> columns each !</p>
<pre><code>plage, plage, 2000, 12582912, 0, 275.112, 43.6829, 0.57576, 1568.3, 1491.7, 29.7886, 921.708, 767.69, 15.1822, 970.818, null
plage0, plage, 2000, 12582912, 0, -470.48, -690.498, -16.542, 470.48, 690.498, 16.542, 0.0, 0.00012207, 4.76837e-007, 835.711, null
plage1, plage, 2000, 12582912, 0, -456.201, -769.794, -15.5455, 456.201, 769.794, 15.5455, 0.0, 0.0, -4.76837e-007, 894.955, null
plage2, plage, 2000, 12582912, 0, -788.48, -1012.48, -16.8566, 788.48, 1012.48, 16.8566, 0.0, 0.0, -4.76837e-007, 1283.39, null
plage3, plage, 2000, 12582912, 0, -716.8, -680.96, -16.7993, 716.8, 680.96, 16.7993, 0.0, 0.0, 0.0, 988.833, null
plage4, plage, 2000, 12582912, 0, -788.48, -430.08, -17.4505, 788.48, 430.08, 17.4505, 0.0, -0.000244141, 4.76837e-007, 898.317, null
plage5, plage, 2000, 12582912, 0, -788.48, -286.72, -16.8566, 788.48, 286.72, 16.8566, 0.0, 0.0, -4.76837e-007, 839.162, null
plage6, plage, 2000, 12582912, 0, -788.48, -756.566, -16.8566, 788.48, 756.565, 16.8566, 0.0, 0.0, -4.76837e-007, 1092.88, null
plage7, plage, 2000, 12582912, 0, -415.092, -669.848, -2.35125, 415.092, 669.848, 2.35125, 0.0, 0.0, 0.0, 788.038, null
plage8, plage, 2000, 12582912, 0, -323.538, -698.055, -1.83764, 323.538, 698.055, 1.83764, 0.0, 0.0, 0.0, 769.39, null
plage9, plage, 2000, 12582912, 0, -344.821, -653.995, -2.31168, 344.821, 653.995, 2.31168, 0.0, 0.0, 0.0, 739.335, null
plage10, plage, 2000, 12582912, 0, -414.529, -697.8, -3.58363, 414.53, 697.8, 3.58363, 0.0, 0.00012207, 0.0, 811.648, null
plage11, plage, 2000, 12582912, 0, -429.283, -679.338, -4.19869, 429.282, 679.338, 4.1987, 0.0, 0.0, 0.0, 803.618, null
plage12, plage, 2000, 12582912, 0, -650.986, -725.165, -29.6797, 650.987, 725.165, 29.6797, 0.0, 0.0, -9.53674e-007, 974.951, null
</code></pre>
<p dir="auto">So, the <strong>general</strong> form to catch <strong>any</strong> text, without <strong>leading blank</strong> characters, located in the column <strong>N</strong>, is, simply :</p>
<p dir="auto">SEARCH : <strong><code>(?-s)^(.*?,){N-1}\h*\K[^,\r\n]+</code></strong></p>
<p dir="auto"><strong>IMPORTANT</strong> :</p>
<ul>
<li>
<p dir="auto">Of course, you need to select the <strong>Regular expression</strong> search mode</p>
</li>
<li>
<p dir="auto">In the regex, <strong>replace</strong> the generic form <strong>N-1</strong> by a <strong>REAL</strong> number. For instance, if you would like to reach the <strong>13th</strong> column, you’ll replace the form <strong>N- 1</strong> with the number <strong>12</strong> ! So, in your case, you need to type the regex <strong><code>(?-s)^(.*?,){2}\h*\K[^,\r\n]+</code></strong>, in order to catch the number <strong>2000</strong> of the <strong>third</strong> column !</p>
</li>
</ul>
<p dir="auto"><strong>Notes</strong> :</p>
<ul>
<li>
<p dir="auto">To begin, the <strong><code>(?-s)</code></strong> modifier, ensure that the <strong>dot</strong> symbol matches <strong>standard</strong> characters, <strong>only</strong>, even if you <strong>previously</strong> checked the <strong>. matches newline</strong> option !</p>
</li>
<li>
<p dir="auto">Then, the <strong>zero-length</strong> assertion <strong><code>^</code></strong> represents the <strong>very beginning</strong> of any line</p>
</li>
<li>
<p dir="auto">The syntax <strong><code>(.*?,){N-1}</code></strong> represents <strong>any</strong> text, after the <strong>beginning</strong> of a line, <strong>without</strong> commas, till an <strong>ending comma</strong>, repeated <strong><code>N-1</code></strong> times</p>
</li>
<li>
<p dir="auto">The <strong><code>\h*</code></strong> stands for possible <strong>horizontal blank</strong> characters : <strong>Space</strong> ( <strong><code>\x20</code></strong> ), <strong>Tabulation</strong> (<strong><code>\t</code></strong>) or <strong>No-Break</strong> space ( <strong><code>\xa0</code></strong> ), leading the column <strong>N</strong></p>
</li>
<li>
<p dir="auto">The <strong><code>\K</code></strong> form <strong>reset</strong> the regex engine, so that everything <strong>previously</strong> matched is <strong>forgotten</strong>. So the regex engine position is, now, located just before the <strong>first non-blank</strong> character of column <strong><code>N</code></strong></p>
</li>
<li>
<p dir="auto">Finally, the <strong><code>[^,\r\n]+</code></strong> is a <strong>negative class</strong> of characters which stands for any <strong>non null</strong> range of characters, <strong>different</strong> from a <strong>comma</strong> and from the <strong>EOL</strong> characters <strong><code>\r</code></strong> or <strong><code>\n</code></strong></p>
</li>
</ul>
<p dir="auto">=&gt; Therefore the <strong>final</strong> match, on <strong>each</strong> line, is, <strong>only</strong> the <strong>whole</strong> text of column <strong>N</strong>, without possible <strong>leading blank</strong> characters and without the <strong>ending comma</strong> or without the <strong>EOL</strong> characters, if column <strong>16</strong> is chosen !</p>
<p dir="auto">Et voilà !</p>
<p dir="auto">Best regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/17132</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/17132</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sun, 07 Aug 2016 20:30:47 GMT</pubDate></item></channel></rss>