I agree that the OPed regex will match and capture the first empty string it finds (i.e., the one at the beginning of the string), but is YAPE::Regex::Explain at all valid for constructs such as (?<NAME>pattern) introduced with Perl version 5.10?
Give a man a fish: <%-(-(-(-<
In reply to Re^2: regex catch pattern that doesn't contain a pattern
by AnomalousMonk
in thread regex catch pattern that doesn't contain a pattern
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |