Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
prints only the first domain, much to my annoyance.if (/^([\w.-]+((,\s?)|(\s&\s)|(\sand\s)|$))+/) { print "Got a match - $1\n"; } else { print "Thursday night on the town - bad idea.\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: friday morning regex
by dingus (Friar) on Nov 08, 2002 at 10:17 UTC | |
by Anonymous Monk on Nov 08, 2002 at 11:42 UTC | |
|
Re: friday morning regex
by BrowserUk (Patriarch) on Nov 08, 2002 at 10:19 UTC | |
|
Re: friday morning regex
by robartes (Priest) on Nov 08, 2002 at 10:15 UTC | |
|
Re: friday morning regex
by Tanalis (Curate) on Nov 08, 2002 at 10:24 UTC |