in reply to Regexp not capturing in named subrules
Huh?( ... ){0}
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regexp not capturing in named subrules
by diotalevi (Canon) on Sep 16, 2009 at 16:35 UTC | |
by ikegami (Patriarch) on Sep 16, 2009 at 16:57 UTC | |
by tye (Sage) on Sep 16, 2009 at 17:20 UTC | |
by diotalevi (Canon) on Sep 16, 2009 at 17:25 UTC | |
by merlyn (Sage) on Sep 16, 2009 at 18:29 UTC | |
by diotalevi (Canon) on Sep 16, 2009 at 18:36 UTC | |
|