rovf has asked for the wisdom of the Perl Monks concerning the following question:
I'm looking for a regexp which matches if the string is
Of course I can do it with
but I wonder if there are simpler/more elegant solutions. updated correction about handling of empty string/^\s*[^\s\d]|^$/
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Ideas to improve this regexp?
by moritz (Cardinal) on Nov 03, 2009 at 13:43 UTC | |
by rovf (Priest) on Nov 03, 2009 at 14:17 UTC | |
|
Re: Ideas to improve this regexp?
by johngg (Canon) on Nov 03, 2009 at 14:37 UTC | |
|
Re: Ideas to improve this regexp?
by gmargo (Hermit) on Nov 03, 2009 at 13:54 UTC | |
by moritz (Cardinal) on Nov 03, 2009 at 13:59 UTC |