x Did you like it? Well, then please consider making a donation :)

Category - Digits, Numbers

If else condition on minus sign

If numbers are negative then length of numbers is 11 otherwise 12

Type: match, Date: 4/14/2016 10:23:59 PMAuthor: mahajan344

Numbers from 0 to 100

Validate numbers from 0 to 100

Type: match, Date: 4/14/2016 9:24:49 PMAuthor: mahajan344

Numbers from 0 to 100

Validate numbers from 0 to 100

Type: match, Date: 4/14/2016 9:24:47 PMAuthor: mahajan344

Regex.Matches, Regular Expression for hexadecimal number

Matches expression starting with a 0, following by either a lower or uppercase x, followed by one or more characters in the ranges 0-9, or a-f, or A-F.

Type: match, Date: 8/14/2015 1:07:13 PMAuthor: stackoverflow

Validate numbers

If Possible, Don't Use Regex To Validate Numbers. If at all possible, use your language. There may be functions to help you determine if the value contained by a string is a valid number. That being said, if you're accepting a variety of formats (commas, etc.) you may not have a choice.

Type: match, Date: 7/12/2015 4:07:04 PMAuthor: stackoverflow