Of course, it should have been 0 or 1 not 0 or many.
I don't see any advantage in using /msx, nor \A & \z for this?
(Nor qq{} when simple quotes do, but that a personal beef. PBP has a lot to answer for :)
In reply to Re^3: conditional regex
by BrowserUk
in thread conditional regex
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |