in reply to Conditional regex
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.
|
|---|