regexmatch.dev
Explore
Open main menu
Save & Share
Facebook
Twitter
Tumblr
E-Mail
Pinterest
LinkedIn
Reddit
<input type="number" /> pattern
Published on Tue Mar 01 2022
As 'number' is not implemented by all browsers, you can check your <input type="text" /> value with this RegExp.
Regex
Test String
42 -42 4.2 -4.2 4.2e9 4.2e+9 4.2e-9 -4.2e9 -4.2e+9 -4.2e-9 0.666 -0.666
Additional matching regexes for
<input type="number" /> pattern
<input type="number" /> pattern
As 'number' is not implemented by all browsers, you can check your <input type="text" /> value with this RegExp.
php input:date yyyy-mm-dd
improved "Ahmed Z" regexp. PHP date format (and input[type=text] format date too): YYYY-MM-DD. Year between [1900-2099]. No leap year check. Month 02 is limited to 29 days.
Twitter user profile url pattern
Pattern that check your string to match Twitter user profile URL.
hex number check
check if a string is a hex number
CFF-definitions.reference.isbn
Pattern for validating a `definitions.reference.isbn` value in the Citation File Format (CFF)
check phone number(Taiwan)
If pattern match, then this number probably is a phone number in Taiwan.
iOS Localizable.strings parser
Can be used to find all keys and values in .strings file. Matching pattern: "key" = "value";
Date regex
this regex check if the date is in the format d/m/Y H:i , it will not check the number of days in month
Validate number in format: +xxxxxxxxxxx
Used for number validation in input forms, when number is required to be in international format. You can adjust the required number length by adjusting this part of regex: {6,10}. The bigged the second number, the longer number will pass the match.
what3words
This pattern check three words with a dot separator betwwern words. It use unicode; It is not yest compatible with javascript