Re: tango -D2 regex

2013-12-17 Thread seany
On Monday, 16 December 2013 at 17:20:59 UTC, Dmitry Olshansky wrote: 16-Dec-2013 11:46, seany пишет: 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

Re: tango -D2 regex

2013-12-16 Thread John Colvin
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

Re: tango -D2 regex

2013-12-16 Thread Dmitry Olshansky
16-Dec-2013 12:06, seany пишет: On Monday, 16 December 2013 at 07:56:53 UTC, evilrat wrote: have you tried look the docs first? phobos regex patterns described here http://dlang.org/phobos/std_regex.html The only mention of backtrack is : bmatch it returns a regex object with a machine stat

Re: tango -D2 regex

2013-12-16 Thread Dmitry Olshansky
16-Dec-2013 11:46, seany пишет: 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*) With

Re: tango -D2 regex

2013-12-16 Thread JR
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

Re: tango -D2 regex

2013-12-16 Thread seany
On Monday, 16 December 2013 at 07:56:53 UTC, evilrat wrote: have you tried look the docs first? phobos regex patterns described here http://dlang.org/phobos/std_regex.html The only mention of backtrack is : bmatch it returns a regex object with a machine state, and last match, but it is sti

Re: tango -D2 regex

2013-12-16 Thread evilrat
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

tango -D2 regex

2013-12-15 Thread seany
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