No such thing as a small change | |
PerlMonks |
Re: Named capture backreferences cannot be used in character classes?by davido (Cardinal) |
on Sep 26, 2013 at 17:05 UTC ( [id://1055865]=note: print w/replies, xml ) | Need Help?? |
If it is only ' and ", you don't necessarily have to capture:
That's unsightly enough that I would probably want to define it as a named subpattern using:
*sigh* I posted too quickly... each alternate pattern would need to be tested individually, I think:
Update: And even that simplifies to:
...so I'm sure the actual usage must be more complex. :) My apologies. heh. Dave
In Section
Seekers of Perl Wisdom
|
|