On Mon, 2 Feb 2004 12:56:41 -0500, Jeff 'japhy' Pinyan
<> wrote:
>On Mon, 2 Feb 2004, Dang Griffith wrote:
>
>>1. Is there a more appropriate newsgroup to post questions regarding
>>regular expressions? I know many languages now support them, but Perl
>>is generally considered the de facto standard. (Yes?)
>
>This is the place to ask questions about Perl's regexes.
>
>>2. Are there plans to add syntax to support matched-nesting, for
>>things such as balanced parenthesis, angle-brackets, and quote marks?
>>It's my understanding that there currently is not support for this,
>>which is why you can't parse xhtml-like text with simply a regular
>>expression. I.e., you need to go to the next level and write a parser
>>to maintain the state of the nesting.
>
>You can match nested things with Perl's regexes, because Perl's regexes
>aren't... well... regular. You can execute arbitary code. You can
>dynamically generate the regex as it's being matched.
Thanks to Jeff and Walter. You both confirmed what I thought to be
the case. I.e., regular expressions cannot support nested matching,
but that additional programming can be created to support it.
--dang rpi '87
|