Quibble: this is actually a lookahead, not a lookbehind. A lookbehind would be
m/(?<=\bare\s)(\d{1,2})/Note that, depending on the version of Perl in use, variable-length lookbehinds (e.g. m/(?<=\bare\s{1,3})(\d{1,2})/ are either unavailable, or restricted in how much they can match.
In reply to Re: Return value from positive look behind
by Anonymous Monk
in thread Return value from positive look behind
by bestresearch2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |