in reply to Pattern matching
$single = "12"; @allbonds = qw(12 13 123 12,45 123,45 12,345 1234 12345); @somebonds = grep /^$single(?:\d|,\d{2})$/o, @allbonds;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Pattern matching
by Dogg (Scribe) on Mar 26, 2002 at 00:44 UTC | |
by Fletch (Bishop) on Mar 26, 2002 at 02:08 UTC |