in reply to How to write a regular expression to extract a number from an embedded string?
$_="abcedf 5163 1234 5678 or 1234516323943293"; print "$1\n" while /(5163(?:\s*\d){8})/g;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to write a regular expression to extract a number from an embedded string?
by davido (Cardinal) on Jul 28, 2004 at 20:32 UTC |