in reply to Re: Match Optional Groups with 1 Required Group
in thread Match Optional Groups with 1 Required Group
print "$_: ", m[^\w+(?:\.\w+)?$] ? "matched\n" : "failed\n" for qw[ one one.two one.two.three four.five.six.seven one. one-two + ];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Match Optional Groups with 1 Required Group
by BrowserUk (Patriarch) on Feb 04, 2014 at 00:52 UTC |