View Single Post
Old 05-23-2014, 12:00 PM   #6
Gwaredd
Gwaredd
Gwaredd began at the beginning.
 
Gwaredd's Avatar
 
Posts: 4
Karma: 10
Join Date: Jun 2012
Location: Whitewater, WI
Device: Kindle Paperwhite
Quote:
Originally Posted by eschwartz View Post
@mrmikel,

1 regex: http://regular-expressions.info/numericranges.html

I'd just stick with
Code:
[1-9][0-9]?[0-9]?
which is equivalent to all three of yours. The link has some nice frills though.
Ah, very nice. I didn't know such a thing existed. I will give it a go. The book I initially referred to is already been fixed; I had to do it by hand but since I'm retired I don't have anything better to do at times. Nevertheless, I am confronted with this from time to time so your suggestion will come in mighty handy.

Thanks mate!
Gwaredd is offline   Reply With Quote