in reply to Perl Regex
How about:
Update: Added /g to regex. Oops.my @matches = $string =~ / ^ # beginning of line (\d{1,5}) # 1-5 digit number \s+ # gap (?: # group ([A-Z0-9()-]{7}) # 7-char thing \s+ # gap ([A-Z0-9()-]{7}) # another 7-char thing ){1,45} # 7-char thing # up to 45 groups $ # end of line /gx;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl Regex
by Anonymous Monk on Jul 08, 2004 at 13:41 UTC | |
by pbeckingham (Parson) on Jul 08, 2004 at 13:52 UTC | |
by Anonymous Monk on Jul 08, 2004 at 14:00 UTC | |
by pbeckingham (Parson) on Jul 08, 2004 at 14:21 UTC | |
by Roy Johnson (Monsignor) on Jul 08, 2004 at 13:52 UTC |