GSTIN Number Regular Expression
A regular expression to match a valid 15-digit GSTIN number (Goods and Services Tax Identification Number) in India.
/\d{2}[A-Z]{5}\d{4}[A-Z]{1}[A-Z\d]{1}[Z]{1}[A-Z\d]{1}/g
A regular expression to match a valid 15-digit GSTIN number (Goods and Services Tax Identification Number) in India.
/\d{2}[A-Z]{5}\d{4}[A-Z]{1}[A-Z\d]{1}[Z]{1}[A-Z\d]{1}/g
A regular expression to match the first occurrence of a number in a string.
/^\d+/g
A regular expression that validates and matches UK National Insurance Number (NIN).
/^(?!BG)(?!GB)(?!NK)(?!KN)(?!TN)(?!NT)(?!ZZ)(?:[A-CEGHJ-PR-TW-Z][A-CEGHJ-NPR-TW-Z])(?:\s*\d\s*){6}([A-D]|\s)$/g
Useful regular expressions that will match even or odd numbers such as zip code, state id, or passport number.
/^\d*[02468]$/g
A regular expression to match repeating digits in a given number.
/([0-9])\1+/g
A quick regular expression to match and validate the Credit Card’s CVV numbers.
/^[0-9]{3,4}$/
A Regular Expression to match a 2-digit number, which can be helpful in validating a Credit/Debit Card issue number.
/^[0-9]{2}$/g
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+$/