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]|^$/
In reply to Ideas to improve this regexp? by rovf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |