<?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[Problem with Find and replace using Regex]]></title><description><![CDATA[<p dir="auto">Hi All,<br />
Please bear with me as I’m a total newbie to regex syntax.<br />
I have a text file which I’m trying to do a find and replace on using regex because normal find and replace would take too long. The text file is over 1 million lines long.  My regex search successfully finds what I need. My replace successfully replaces it. But the problem is - after clicking “replace all” the text file is now over 2 million lines. I think it has something to do with the replace regex syntax<br />
Example of lines I’m searching for -  model “AMURRY 150327 DR PIPE UG”</p>
<p dir="auto">My Regex find - model\s"(AMURRY|CKB|CLAYDEN|DARACON|DOWNER|FREDON|FULTON HOGAN|FH DWC|FUSION|GFIS|HUSKY|LEND LEASE|M AND P|MURPHY|OLYMPIC|ROBSON|SAFEGATE|SAGEGATE|SPANTECH|STOWE|WILKEN) \d+\s</p>
<p dir="auto">My regex replace -     model "$`</p>
<p dir="auto">Can anyone tell me why it is adding all the extra lines. Or suggest a better way? Thanks in advance</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/12052/problem-with-find-and-replace-using-regex</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Apr 2026 13:37:47 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/12052.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 03 Jul 2016 05:00:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem with Find and replace using Regex on Sun, 03 Jul 2016 05:40:44 GMT]]></title><description><![CDATA[<p dir="auto">Hi I found my own solution -<br />
My Regex find -<br />
(model\s"(AMURRY|CKB|CLAYDEN|DARACON|DOWNER|FREDON|FULTON HOGAN|FH DWC|FUSION|GFIS|HUSKY|LEND LEASE|M AND P|MURPHY|OLYMPIC|ROBSON|SAFEGATE|SAGEGATE|SPANTECH|STOWE|WILKEN) \d+\s)(.*)</p>
<p dir="auto">My regex replace - model "\3</p>
<p dir="auto">it now does not add the million lines of text.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/16686</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/16686</guid><dc:creator><![CDATA[Noel Worland]]></dc:creator><pubDate>Sun, 03 Jul 2016 05:40:44 GMT</pubDate></item></channel></rss>