[EMAIL PROTECTED] writes:
:> In perl5,
:>
:> /(??{ $FOO })/
:>
:> delays the interpolation of $FOO, so as to be able to have
:> recursively defined regexps.
:
: Of course, that example might in itself be sufficient reason
: to completely redesign the regex syntax!
On
Damian Conway <[EMAIL PROTECTED]> writes:
> Of course, that example might in itself be sufficient reason
> to completely redesign the regex syntax!
Perl uses the term "pattern matching" since day one. This opens the
possibility of extending pattern matching with other, not neccessarily
regex bas
> In perl5,
>
> /(??{ $FOO })/
>
> delays the interpolation of $FOO, so as to be able to have
> recursively defined regexps.
Of course, that example might in itself be sufficient reason
to completely redesign the regex syntax!
Damian
PS: I'll probably have a RFC on that i
In perl5,
/(??{ $FOO })/
delays the interpolation of $FOO, so as to be able to have
recursively defined regexps.
Nat
=head1 Title
Recursion in regular expressions
=head1 Abstract
It would be useful to have part or all of a regular expression be
recursive, for example when trying to match a string with
properly-nested parentheses.
=head1 Discussion
Regexps long since gave up the pretense of being "regular".