in reply to differnce between egrep and perl regex ?
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: differnce between egrep and perl regex ?
by Random_Walk (Prior) on Oct 12, 2004 at 14:03 UTC |