![]() |
|
good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
comment on |
( #3333=superdoc: print w/replies, xml ) | Need Help?? |
Ack. I guess spending two days trying to grok yacc and Parse::Yapp led me to choose to do it the hard way. Thanks for a healthy does of simplicity. Unfortunately, the following regexp break your very good idea:
That only means your code needs at least one capture:
This passes my whole test suite, expect for this regexp:
Which dies horribly with the message: Unmatched ( in regex; marked by <-- HERE in m/(?:(( <-- HERE ?-xism:(?x) # (comment) (?-x) # (capture) (?x) # (comment))))?/ So, $regex compiles, but qr/(?:($regex))?/ doesn't? I'm lost. In reply to Re: Re: Trying to count the captures in a compiled regular expression
by BooK
|
|