If possible, it's always best to fix the problem at the source. "Regular" expressions are far from regular. As you've already discovered, there are DFA and NFA engines. DFA engines are much faster, but can't match sections of the text to variables. Also, is this alledgedly a PCRE (Perl Compatible Regular Expression)? Is it from egrep or awk? There are many different regular expression engines out there. Someone telling you that "this is a regex" is the same thing as someone handing you code you don't recognize and saying "this is a programming language."
Cheers,
Ovid
New address of my CGI Course.
In reply to Re: differnce between egrep and perl regex ?
by Ovid
in thread differnce between egrep and perl regex ?
by Random_Walk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |