tango -D2 regex

JR zorael at gmail.com
Mon Dec 16 08:33:15 PST 2013


On Monday, 16 December 2013 at 07:46:30 UTC, seany wrote:
> I dont find any info on backtrack on tango-D2 regex.
>
> For example, I want to match things like
>
> barFOObar
>
> or
>
> bazFOObaz
>
> so I would use, in PCRE, ^(\w*)FOO($1)$, with $1 meaning the 
> word (given by \w*  that was matced in the first subpattern 
> (\w*)
>
> How to do the samein Tango for D2 (or even phobos for D2)?

Something like http://dpaste.dzfl.pl/0e02c3d1 ? Phobos though.



More information about the Digitalmars-d-learn mailing list