Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Try a regular expression replace of <code>(good)|(great)|(fine)</code> with <code>(?1bad)(?2worse)(?3not)</code>.</p> <p>The search looks for either of three alternatives separated by the <code>|</code>. Each alternative has ist own capture brackets. The replace uses the conditional form <strong>?Ntrue-expression:false-expression</strong> where <strong>N</strong> is decimal digit, the clause checks whether capture expression <strong>N</strong> matches.</p> <p>Tested in Notepad++ 6.3</p> <p>Update:</p> <blockquote> <p>You can find good documentation, about the new PRCE Regular Expressions, used by N++, since the 6.0 version, at the TWO addresses below :</p> <p><a href="http://www.boost.org/doc/libs/1_48_0/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html">http://www.boost.org/doc/libs/1_48_0/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html</a></p> <p><a href="http://www.boost.org/doc/libs/1_48_0/libs/regex/doc/html/boost_regex/format/boost_format_syntax.html">http://www.boost.org/doc/libs/1_48_0/libs/regex/doc/html/boost_regex/format/boost_format_syntax.html</a></p> <p>The FIRST one concerns the syntax of regular expressions in SEARCH</p> <p>The SECOND one concerns the syntax of regular expressions in REPLACEMENT</p> <p>And, if you can understand "written French", I made a tutorial about PCRE regular expressions, stored in the personal site of Christian Cuvier (cchris), at the address below :</p> <p><a href="http://oedoc.free.fr/Regex/TutorielRegex.zip">http://oedoc.free.fr/Regex/TutorielRegex.zip</a></p> </blockquote> <p>(Extracted from a posting by <strong>THEVENOT Guy</strong> at <a href="http://sourceforge.net/p/notepad-plus/discussion/331754/thread/ca059a0a/">http://sourceforge.net/p/notepad-plus/discussion/331754/thread/ca059a0a/</a> )</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload