in reply to Re: Re: expanding the functionality of split
in thread expanding the functionality of split
You could make an ordering if you can decide whether one regex will match everything another does. I doubt this is a decidable question for Perl regular expressions. It is for "normal" regular expressions, and, IIRC, undecidable for context free grammars. Perl regular expressions are hard to qualify in this sense, but even if it's theoretical possible, it's not going to be cheap, and hence the price would be high.
It's going to be a responsibility of the programmer to pass in the options in a logical order; just as already is required for alternations in regular expressions.
Abigail
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: expanding the functionality of split
by Aristotle (Chancellor) on Dec 10, 2002 at 15:37 UTC | |
|
Re: Re: expanding the functionality of split
by tachyon (Chancellor) on Dec 10, 2002 at 15:57 UTC |