in reply to Regular Expression To Extract Multiple Matches Pattern
$teststring = 'blah not-so-good blah not-too-shabby '; while ($teststring =~ /([a-z]+-[a-z]+-[a-z]+)/gi) { print "$1\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Regular Expression To Extract Multiple Matches Pattern
by rob_au (Abbot) on Jan 07, 2002 at 16:18 UTC | |
by busunsl (Vicar) on Jan 07, 2002 at 16:20 UTC | |
by blakem (Monsignor) on Jan 08, 2002 at 00:23 UTC |