XP is just a number | |
PerlMonks |
Re: Regexp not capturing in named subrulesby merlyn (Sage) |
on Sep 16, 2009 at 15:07 UTC ( [id://795642]=note: print w/replies, xml ) | Need Help?? |
Huh? First, {0} should be outright illegal, because it tends to be used (without effect) by newbies who say "I want this section to contain no K's, so I'll put K{0}". Second, even if it is legal, as it appears to be, I'd expect any decent optimizer to just completely eliminate it. So I'm surprised you expected any sort of utility out of your regex. -- Randal L. Schwartz, Perl hacker The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.
In Section
Seekers of Perl Wisdom
|
|