Update: In an earlier version of perl, the parens in (\w+)? may actually capture something even when the whole (\w+)? matches the empty string, which may be the reason for the conditional, but changing it to (\w*) would make the conditional totally unnecessary.
In reply to Re: Conditional regex
by runrig
in thread Conditional regex
by chimni
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |