Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
if ( /^[^0-9]+$/ ) { my @words= /(\b.+?\b)/g; print "@words\n"; }
All this does is match words as long as there is not a single number located anywhere in the line.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Reg Ex help
by Chmrr (Vicar) on Sep 12, 2001 at 21:35 UTC | |
|
Re: Reg Ex help
by chromatic (Archbishop) on Sep 12, 2001 at 21:33 UTC | |
|
Re: Reg Ex help
by dragonchild (Archbishop) on Sep 12, 2001 at 20:30 UTC | |
by runrig (Abbot) on Sep 12, 2001 at 20:40 UTC | |
by dragonchild (Archbishop) on Sep 12, 2001 at 21:38 UTC | |
|
Re: Reg Ex help
by Anarion (Hermit) on Sep 13, 2001 at 05:31 UTC | |
|
Re: Reg Ex help
by jehuni (Pilgrim) on Sep 13, 2001 at 20:52 UTC | |
|
Re: Reg Ex help
by hopes (Friar) on Sep 14, 2001 at 09:41 UTC | |
|
Re: Reg Ex help
by pike (Monk) on Sep 14, 2001 at 15:02 UTC |