Regular Expression To Match Comma Separated Numbers
A regular expression to simply match and valid comma-separated numbers in your data.
/^\d+(,\d+)*$/
A regular expression to simply match and valid comma-separated numbers in your data.
/^\d+(,\d+)*$/
A short yet useful regular expression that matches a number between 1 and 100.
/^(0|[1-9][0-9]?|100)$/
A regular expression that matches the number at the end of a string.
/\d+$/
A useful regular expression that matches international phone numbers in the E.164 (The international public telecommunication numbering plan) format.
/^\+?[1-9]\d{1,14}$/
A regular expression to match any numbers greater than a specified number.
/^([5-9]\d|[1-9]\d{2,})$/
A regular expression that matches hexadecimal values.
/(0x)?[0-9a-f]+/i
A regular expression that matches all characters except digits 0-9. This can be useful to find out and replace all non-numeric characters in a string.
/[^0-9]/
A regular expression to match a positive or negative integer value.
/^-?\d*\.?\d+$/
A regular expression to validate Grade Point Average (GPA), which is between 0.00 and 4.00.
/^[0-3]\.?\d{0,2}|[4].[0]{0,2}$/
A regular expression to match postal codes (also called CEP) in Brazil.
/^\d{5}(-\d{3})?$/