<?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[Find and Replace using regular expression]]></title><description><![CDATA[<p dir="auto">Hello people,</p>
<p dir="auto">I have a question</p>
<p dir="auto">I’m using regular expression to find and replace</p>
<p dir="auto">on search : ^case “/[a-Z0-9]<em>.php" (fine)<br />
on replace: ^case "/[a-Z0-9]</em>.php”: (issue)</p>
<p dir="auto">It finds no issue but it replace incorrect</p>
<p dir="auto">It finds case “/123.php” and replace to ^case “/[a-Z0-9]*.php”:  and not case “/123.php”: as I expected :-((</p>
<p dir="auto">Thanks in advance for any help …</p>
<p dir="auto">thanks a lot !</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/16787/find-and-replace-using-regular-expression</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Apr 2026 11:38:47 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/16787.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 12 Dec 2018 20:00:39 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Find and Replace using regular expression on Wed, 12 Dec 2018 20:53:47 GMT]]></title><description><![CDATA[<p dir="auto"><img src="https://camo.nodebb.org/0698ec1a463b004c7a6d011e01706140273d94b0?url=https%3A%2F%2Fi.imgur.com%2F61pHgx1.png" alt="Imgur" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/37440</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/37440</guid><dc:creator><![CDATA[Scott Sumner]]></dc:creator><pubDate>Wed, 12 Dec 2018 20:53:47 GMT</pubDate></item><item><title><![CDATA[Reply to Find and Replace using regular expression on Wed, 12 Dec 2018 20:48:09 GMT]]></title><description><![CDATA[<p dir="auto">Scott</p>
<p dir="auto">Thanks a lot … worked perfect …</p>
<p dir="auto">I learnt I need to put a sentence and left next blank to not get italics … sorry it was my first post on forum :)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/37439</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/37439</guid><dc:creator><![CDATA[ConteudoAnimal com br]]></dc:creator><pubDate>Wed, 12 Dec 2018 20:48:09 GMT</pubDate></item><item><title><![CDATA[Reply to Find and Replace using regular expression on Wed, 12 Dec 2018 20:29:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/13926">@ConteudoAnimal-com-br</a></p>
<p dir="auto">So as I said without proper formatting it is hard to tell, but I think this line gives us a clue:</p>
<pre><code class="language-z">It finds case “/123.php” and replace to ^case “/[a-Z0-9]*.php”: and not case “/123.php”
</code></pre>
<p dir="auto">You need to use a capture group–using parenthesis–in the <em>find</em> part and then refer to the group in the <em>replace</em> part (by number).</p>
<p dir="auto">So maybe:</p>
<p dir="auto"><strong>Find what</strong>: <code>^case "/(\w+)\.php"</code><br />
<strong>Replace with</strong>: <code>^case "/\1.php":</code></p>
<p dir="auto">I made some other tweaks, hopefully I am interpreting your need correctly.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/37437</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/37437</guid><dc:creator><![CDATA[Scott Sumner]]></dc:creator><pubDate>Wed, 12 Dec 2018 20:29:25 GMT</pubDate></item><item><title><![CDATA[Reply to Find and Replace using regular expression on Wed, 12 Dec 2018 20:11:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/13926">@ConteudoAnimal-com-br</a></p>
<p dir="auto">Ugh.  See the <em>italics</em> in your expressions?  You have <code>*</code> in there that are being consumed by this site.  Put your regular expressions inside a pair of grave accents: `like this` so we can see what you really mean (the grave accents will keep this site from messing with special characters).  Examine what you are composing in the Preview pane and if it doesn’t match what you intend, keep revising until it does before pressing Submit.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/37436</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/37436</guid><dc:creator><![CDATA[Scott Sumner]]></dc:creator><pubDate>Wed, 12 Dec 2018 20:11:29 GMT</pubDate></item></channel></rss>