<?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[Newbie question - search and replace with wildcard]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I’ve tried to find the solution for this question but I got stuck. Hopefully someone can help me out. I have a text file where I would like to make a search and replace</p>
<p dir="auto">String to search for:    “1”	.*	“1”         where the .* can be anything but between two tabs and “1” . I find the strings with this to search for but feel free to correct me.</p>
<p dir="auto">I would like to keep the data in the middle just change the second “1” to “6”</p>
<p dir="auto">So: “1”	“100”	“1”  would become “1”	“100”	“6”<br />
And: “1”	“99994”	“1”  would become “1”	“99994”	“6”</p>
<p dir="auto">Can someone please help me out ?!</p>
<p dir="auto">Many thanks<br />
Fredrik from Sweden.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/20300/newbie-question-search-and-replace-with-wildcard</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Apr 2026 21:24:20 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/20300.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 13 Nov 2020 14:04:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Newbie question - search and replace with wildcard on Fri, 13 Nov 2020 14:40:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@Alan-Kilborn</a> said in <a href="/post/59662">Newbie question - search and replace with wildcard</a>:</p>
<blockquote>
<p dir="auto">find: (?-s)(“1”.*?)“1”<br />
repl: ${1}“6”</p>
</blockquote>
<p dir="auto">Many thanks! I really appriciate your help.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/59664</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/59664</guid><dc:creator><![CDATA[Fredrik Konradsson]]></dc:creator><pubDate>Fri, 13 Nov 2020 14:40:34 GMT</pubDate></item><item><title><![CDATA[Reply to Newbie question - search and replace with wildcard on Fri, 13 Nov 2020 14:21:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/20363">@Fredrik-Konradsson</a></p>
<p dir="auto">Of course, for this one TMTOWTDI.</p>
<p dir="auto">Here’s another, which might be more along the track you were originally going:</p>
<p dir="auto">find: <code>(?-s)("1".*?)"1"</code><br />
repl: <code>${1}"6"</code></p>
<p dir="auto">That one might be clearer.</p>
<p dir="auto">But anyway, good that it is solved for you.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/59662</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/59662</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 13 Nov 2020 14:21:16 GMT</pubDate></item><item><title><![CDATA[Reply to Newbie question - search and replace with wildcard on Fri, 13 Nov 2020 14:16:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@Alan-Kilborn</a>  Ohh, many thanks. Saved my day!   That  I wouldn’t have figured out my self : )  Have a nice weekend.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/59661</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/59661</guid><dc:creator><![CDATA[Fredrik Konradsson]]></dc:creator><pubDate>Fri, 13 Nov 2020 14:16:13 GMT</pubDate></item><item><title><![CDATA[Reply to Newbie question - search and replace with wildcard on Fri, 13 Nov 2020 14:14:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/20363">@Fredrik-Konradsson</a> said in <a href="/post/59658">Newbie question - search and replace with wildcard</a>:</p>
<blockquote>
<p dir="auto">String to search for:    “1”	.*	“1”         where the .* can be anything</p>
</blockquote>
<p dir="auto">I should have stated that your first try at it was not bad, not bad, indeed! :-)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/59660</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/59660</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 13 Nov 2020 14:14:24 GMT</pubDate></item><item><title><![CDATA[Reply to Newbie question - search and replace with wildcard on Fri, 13 Nov 2020 14:10:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/20363">@Fredrik-Konradsson</a></p>
<p dir="auto">Try <em>Regular expression</em> search mode.</p>
<p dir="auto">find: <code>(?-s)"1".*?"\K1(?=")</code><br />
repl: <code>6</code></p>
<p dir="auto">I realize there is a lot going on in that find expression, for a newbie.</p>
<p dir="auto">Reference the regular-expression information in our FAQ section.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/59659</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/59659</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 13 Nov 2020 14:10:30 GMT</pubDate></item></channel></rss>