<?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[Search & Replace syntax]]></title><description><![CDATA[<p dir="auto">Hello, I am trying to find and replace but I’m having trouble with it as I’m not good at computers.</p>
<p dir="auto">Here is the data I currently have (“before” data):</p>
<pre><code>SelectSpells(c213ca01-3767-457b-a5c8-fd4c1dd656e2,1,1)
</code></pre>
<p dir="auto">Here is how I would like that data to look (“after” data):</p>
<pre><code>SelectSpells(c213ca01-3767-457b-a5c8-fd4c1dd656e2)
</code></pre>
<p dir="auto">Sometimes there is something after the two digits. What I need to delete are the two digits so that it looks like this at the end</p>
<pre><code>SelectSpells (StringsOfNumbers)
</code></pre>
<p dir="auto">To accomplish this, I have tried using the following Find/Replace expressions and settings</p>
<ul>
<li>Find What = <code>SelectSpells[^&gt;]\d,\d</code><br />
<code>SelectSpells[^],[0-9],[0-9]</code><br />
<code>SelectSpells[\a+][\d 0-9],[\d 0-9]</code><br />
And many more I don’t remember</li>
<li>Replace With = None yet.</li>
<li>Search Mode = Regular Expression</li>
<li>Dot Matches Newline = I don’t know what that is, sorry</li>
</ul>
<p dir="auto">I thought it would work because my friend who’s better at computer thought it would as we’re checking the user manual, but we’re stumped</p>
<p dir="auto">I’d appreciate any help, thanks</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/27641/search-replace-syntax</link><generator>RSS for Node</generator><lastBuildDate>Tue, 25 Aug 2026 04:51:00 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/27641.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 24 Aug 2026 16:37:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Search & Replace syntax on Tue, 25 Aug 2026 03:19:50 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kradiants" aria-label="Profile: KRadiants">@<bdi>KRadiants</bdi></a> <a href="/post/106175">said</a>:</p>
<p dir="auto">1: False on both counts. Here is an example line</p>
<pre><code>                    &lt;attribute id="Selectors" type="LSString" value="SelectSkills(ed664663-93b9-4070-a54b-3c7b19c0e7b4,3);SelectSpells(61f79a30-2cac-4a7a-b5fe-50c89d307dd6,2,0,BardCantrip,,,AlwaysPrepared);SelectSpells(dcb45167-86bd-4297-9b9d-c295be51af5b,4,0,BardSpells);SelectEquipment(aab8c5b5-eacf-4867-8e5f-bd4de3a9132e,1,BardInstrument);SelectAbilityBonus(b9149c8e-52c8-46e5-9cb6-fc39301c05fe,AbilityBonus,2,1)"/&gt;
</code></pre>
<p dir="auto">There is a blank before, and sometimes there is something before and/or after it</p>
<p dir="auto">Otherwise, this is correct.</p>
</blockquote>
<p dir="auto">OK, so in this example you want to end up with:</p>
<pre><code class="language-text">                     &lt;attribute id="Selectors" type="LSString" value="SelectSkills(ed664663-93b9-4070-a54b-3c7b19c0e7b4,3);SelectSpells(61f79a30-2cac-4a7a-b5fe-50c89d307dd6,BardCantrip,,,AlwaysPrepared);SelectSpells(dcb45167-86bd-4297-9b9d-c295be51af5b,BardSpells);SelectEquipment(aab8c5b5-eacf-4867-8e5f-bd4de3a9132e,1,BardInstrument);SelectAbilityBonus(b9149c8e-52c8-46e5-9cb6-fc39301c05fe,AbilityBonus,2,1)"/&gt;
</code></pre>
<p dir="auto">?</p>
<p dir="auto">If that’s correct, try the same expression I suggested before, except remove the <code>^</code> from the front:</p>
<p dir="auto">Find what: <strong><code>(SelectSpells\([\d\-abcdef]+),\d+,\d+</code></strong><br />
Replace with: <strong><code>$1</code></strong></p>
]]></description><link>https://community.notepad-plus-plus.org/post/106178</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/106178</guid><dc:creator><![CDATA[Coises]]></dc:creator><pubDate>Tue, 25 Aug 2026 03:19:50 GMT</pubDate></item><item><title><![CDATA[Reply to Search & Replace syntax on Mon, 24 Aug 2026 20:35:09 GMT]]></title><description><![CDATA[<p dir="auto">1: False on both counts. Here is an example line</p>
<pre><code>                    &lt;attribute id="Selectors" type="LSString" value="SelectSkills(ed664663-93b9-4070-a54b-3c7b19c0e7b4,3);SelectSpells(61f79a30-2cac-4a7a-b5fe-50c89d307dd6,2,0,BardCantrip,,,AlwaysPrepared);SelectSpells(dcb45167-86bd-4297-9b9d-c295be51af5b,4,0,BardSpells);SelectEquipment(aab8c5b5-eacf-4867-8e5f-bd4de3a9132e,1,BardInstrument);SelectAbilityBonus(b9149c8e-52c8-46e5-9cb6-fc39301c05fe,AbilityBonus,2,1)"/&gt;
</code></pre>
<p dir="auto">There is a blank before, and sometimes there is something before and/or after it</p>
<p dir="auto">Otherwise, this is correct.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/106175</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/106175</guid><dc:creator><![CDATA[KRadiants]]></dc:creator><pubDate>Mon, 24 Aug 2026 20:35:09 GMT</pubDate></item><item><title><![CDATA[Reply to Search & Replace syntax on Mon, 24 Aug 2026 20:13:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kradiants" aria-label="Profile: KRadiants">@<bdi>KRadiants</bdi></a>:</p>
<p dir="auto">You probably want something like this:</p>
<p dir="auto">Find what: <strong><code>^(SelectSpells\([\d\-abcdef]+),\d+,\d+</code></strong><br />
Replace with: <strong><code>$1</code></strong></p>
<p dir="auto">That is making a few assumptions:</p>
<ol>
<li>
<p dir="auto">That “SelectSpells(” always starts at the beginning of a line, with nothing (not even blanks) before it, and it’s immediately followed by the id number you want to keep.</p>
</li>
<li>
<p dir="auto">That the id number is always made up of some combination of digits, the letters a-f, and hyphens.</p>
</li>
<li>
<p dir="auto">That the part you want to remove is always a comma, one or more digits, a comma, and one or more digits. No blanks, no extra commas, no letters or hyphens or anything else.</p>
</li>
<li>
<p dir="auto">That once you remove that, if there is anything after the two commas and numbers, you want to keep all of it.</p>
</li>
</ol>
<p dir="auto">If one of those assumptions is not true, you’ll have to explain more precisely what is true.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/106174</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/106174</guid><dc:creator><![CDATA[Coises]]></dc:creator><pubDate>Mon, 24 Aug 2026 20:13:50 GMT</pubDate></item></channel></rss>