Posted by jpluimers on 2015/07/29
I’m really really glad that Lucas Trzesniewski has answered this:
While most regex flavours have roughly a similar syntax for the basic features, there is not a clear standard as to the syntax of the replacement strings. Some tools use
\1 for referencing strings, others use
$1 and so on.
As you use Notepad++, you should know it uses the boost library for its regex implementation, and it uses the Boost-Extended format string for the replacement pattern.
In particular, the placeholder for the nth capture group is
And my comment:
Thanks a lot for that. I found a bit more information about back references and capture groups in various libraries on regular-expressions.info/replacebackref.html.
on my question: Read the rest of this entry »
Posted in Development, RegEx, Software Development | Leave a Comment »
Posted by jpluimers on 2014/12/31
While creating jeroenp / BeSharp.net / source / Native / Delphi / Scripts / GroupProj.xsd — Bitbucket, I bumped into the fact that regular expressions in XSD *or better XML Schema Regular Expressions) regular expressions are a tad different than the RegEx.
Actually, there are quite a few regular expression flavours, and all of them are a tad different. The page Compare Regular Expression Flavors at Regular-Expressions.info.
That is a great site with Regex Tutorial, Examples and Reference – Regexp Patterns by RegEx guru Jan Goyvaerts (yes, that looks Dutch, but he was born in Belgium and now lives in Phuket) famous for tools like PowerGREP and RegExBuddy. All based on the great Delphi RegEx PCRE library written by Jan and included in Delphi XE and up.
The thing that baffled me most is that even though XML Schema Regular Expressions do not support anchors ^ and $, you still have to escape them.
via: XML Schema Regular Expressions.
Posted in Development, RegEx, Software Development, XML/XSD, XSD | 2 Comments »
Posted by jpluimers on 2013/09/19
You’d think that the regex.info site only has information on Jeffrey Friedl’s Mastering Regular Expressions (a great book on RegEx programming) MRE2 Errata, MRE3 Errata and Where to get egrep (agrep and sourcecode/binary builds).
Not so (:
It also hosts a few other things, mostly having to do with imagery or photography:
Posted in Development, Personal, Photography, Power User, RegEx, Software Development | Leave a Comment »
Posted by jpluimers on 2013/05/09
Posted in .NET, C++, Cloud Development, COBOL, CommandLine, Delphi, Development, Fortran, iSeries, Java, Pascal, RegEx, Scripting, Software Development, Web Development, xCode/Mac/iPad/iPhone/iOS/cocoa | 3 Comments »