Randall Twede wrote:i am just beginning to learn about regex. i need one that allows only positive integers not including 0 {1,2,3,4,...}
it looks like i want something like this
[1-9]\d{0,5}
does that look correct?
If you need positive integers and it cannot contains 0,1,2,3,4 use ^[^0-4]+$ //like 5,6,7..55,66,77,88,99,56,57... but 50,01,10 not allowed
If you need positive integers and it cannot contains only 0 use ^[1-9][0-9]*$ //like 10,20,99,45... but 01,02.. not allowed
or reply with a post that contain allowed numbers example
Note: ignore comment lines. they are
not parts of regex
hope this is useful
for more details refer
http://regexone.com/