Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I've looked at regex tutorials but I don't know enough to do this. Any suggestions? Thanks."MacAchallies", "McAchallies", "MacAchounich", "McAchounich", "MacAdam", "McAdam", "MacAdie", "McAdie", "MacAindra", "McAindra" ...
if ( $mystring=~/^Mac\w/ ) { print "\"",$mystring ,"\",\n"; };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: general regex question
by TedPride (Priest) on May 14, 2005 at 15:33 UTC | |
by crashtest (Curate) on May 14, 2005 at 16:58 UTC | |
by Anonymous Monk on May 15, 2005 at 04:25 UTC | |
|
Re: general regex question
by holli (Abbot) on May 14, 2005 at 14:56 UTC | |
|
Re: general regex question
by polettix (Vicar) on May 14, 2005 at 15:03 UTC | |
|
Re: general regex question
by fauria (Deacon) on May 14, 2005 at 15:08 UTC | |
by ww (Archbishop) on May 14, 2005 at 16:21 UTC | |
|
Re: general regex question
by sh1tn (Priest) on May 14, 2005 at 15:25 UTC |