print "$_: ", m[^\w+(?:\.\w+)?$] ? "matched\n" : "failed\n" for qw[ one one.two one.two.three four.five.six.seven one. one-two + ];
In reply to Re^2: Match Optional Groups with 1 Required Group
by rem45acp
in thread Match Optional Groups with 1 Required Group
by rem45acp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |