rem45acp has asked for the wisdom of the Perl Monks concerning the following question:
Thank you for any help you can give.while ("one.two.three" =~ /([A-Za-z0-9_].+)\.?([A-Za-z0-9_].+)?/g) { print "$1\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Match Optional Groups with 1 Required Group
by BrowserUk (Patriarch) on Feb 04, 2014 at 00:25 UTC | |
by rem45acp (Novice) on Feb 04, 2014 at 00:49 UTC | |
by rem45acp (Novice) on Feb 04, 2014 at 00:56 UTC | |
by rem45acp (Novice) on Feb 04, 2014 at 00:48 UTC | |
by BrowserUk (Patriarch) on Feb 04, 2014 at 00:52 UTC | |
|
Re: Match Optional Groups with 1 Required Group
by kcott (Archbishop) on Feb 04, 2014 at 05:51 UTC | |
|
Re: Match Optional Groups with 1 Required Group
by rem45acp (Novice) on Feb 04, 2014 at 00:22 UTC | |
by Laurent_R (Canon) on Feb 04, 2014 at 07:15 UTC |