<?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[Help with finding prefixes & selecting entire string]]></title><description><![CDATA[<p dir="auto">Hello!</p>
<p dir="auto">I just wanted to ask, if there was a relatively simple way to find the prefix to a string, and automatically highlight the entire string with Find &amp; Replace. What I’m trying to do is mass edit CSV files. The strings are separated by commas.<br />
Let’s say a file has data like this;<br />
bb_1234,aa_1233,cb_1244</p>
<p dir="auto">If I wanted to find all the strings starting with “bb_”, and highlight &amp; replace the entire string, up until the next comma. So replacing the bb_ prefix data with something like ZZZ should make the data appear as;<br />
ZZZ,aa_1233,cb_1244</p>
<p dir="auto">Thank you in advance!</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/24387/help-with-finding-prefixes-selecting-entire-string</link><generator>RSS for Node</generator><lastBuildDate>Wed, 16 Sep 2026 21:23:12 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/24387.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 19 Apr 2023 23:13:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Help with finding prefixes & selecting entire string on Wed, 07 Jun 2023 19:28:05 GMT]]></title><description><![CDATA[<p dir="auto"><a href="https://community.notepad-plus-plus.org/user/terry-r">Terry-</a><a href="https://propertyguardmasters.com/" rel="nofollow ugc">R</a> said in <a href="/post/85835">Help with finding prefixes &amp; selecting entire string</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/miska-virtanen" aria-label="Profile: Miska-Virtanen">@<bdi>Miska-Virtanen</bdi></a> said in <a href="/post/85834">Help with finding prefixes &amp; selecting entire string</a>:</p>
<blockquote>
<p dir="auto">If I wanted to find all the strings starting with “bb_”, and highlight &amp; replace the entire string, up until the next comma.</p>
</blockquote>
<p dir="auto">That can be done simply with a regular expression (regex). Using the Replace function you would have<br />
Find What:<code>\bbb_[^,]+</code><br />
Replace With:<code>ZZZ</code><br />
Search mode must be set to regular expression.</p>
<p dir="auto">It didn’t sound as if it was only at the start of a line, hence my regex will look for that sequence in any “cell”. If this isn’t what you actually wanted you will need to elaborate.</p>
<p dir="auto">Terry</p>
</blockquote>
<p dir="auto">Thanks.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/86909</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/86909</guid><dc:creator><![CDATA[Pool Strip]]></dc:creator><pubDate>Wed, 07 Jun 2023 19:28:05 GMT</pubDate></item><item><title><![CDATA[Reply to Help with finding prefixes & selecting entire string on Thu, 20 Apr 2023 00:05:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/miska-virtanen" aria-label="Profile: Miska-Virtanen">@<bdi>Miska-Virtanen</bdi></a> said in <a href="/post/85834">Help with finding prefixes &amp; selecting entire string</a>:</p>
<blockquote>
<p dir="auto">If I wanted to find all the strings starting with “bb_”, and highlight &amp; replace the entire string, up until the next comma.</p>
</blockquote>
<p dir="auto">That can be done simply with a regular expression (regex). Using the Replace function you would have<br />
Find What:<code>\bbb_[^,]+</code><br />
Replace With:<code>ZZZ</code><br />
Search mode must be set to regular expression.</p>
<p dir="auto">It didn’t sound as if it was only at the start of a line, hence my regex will look for that sequence in any “cell”. If this isn’t what you actually wanted you will need to elaborate.</p>
<p dir="auto">Terry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/85835</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/85835</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Thu, 20 Apr 2023 00:05:30 GMT</pubDate></item></channel></rss>