mrras25 has asked for the wisdom of the Perl Monks concerning the following question:
I need to know what is the best way to strip out numbers that are 4 to 5 digits in length in a string.
Examples:
string: npnoa72932n02
Need : 72932 (numeric string of 5)
String: geed7812r412p
Need : 7812 (numeric string of 4)
Thank you for your help
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Stripping out specific numbers
by davido (Cardinal) on Dec 12, 2013 at 00:09 UTC | |
|
Re: Stripping out specific numbers
by AnomalousMonk (Archbishop) on Dec 12, 2013 at 00:12 UTC | |
|
Re: Stripping out specific numbers
by mrras25 (Acolyte) on Dec 12, 2013 at 14:48 UTC |