s2e-lab/RegexEval huggingface dataset:
allows positive none-to-3-decimal values between 0.000 and 1000.000
Match examples:
- ".123"
- "0.126"
- "1000.000"
Non-match examples:
- ".1234"
- "0.1b6"
Regular expression: ^1000([.][0]{1,3})?$|^\d{1,3}$|^\d{1,3}([.]\d{1,3})$|^([.]\d{1,3})$
allows positive and negative none-to-3-decimal values between -1000.000 and 1000.000
Match examples:
- "123.456"
- "-0.125"
- "-1000.000"
Non-match examples:
- "123.4567"
- "-0.1b5"
Regular expression: ^(\-)?1000([.][0]{1,3})?$|^(\-)?\d{1,3}$|^(\-)?\d{1,3}([.]\d{1,3})$|^(\-)?([.]\d{1,3})$
for checking a value is between 99.99% and 00.00%
Match examples:
- "99.99%"
- "9%"
- ".09%"
Non-match examples:
- "99"
- "9.%"
Regular expression: ^((\d{1,2})?([.][\d]{1,2})?){1}[%]{1}$
Match strings where:

The first character of the string is an alphabetic character (uppercase or lowercase).
There is a whitespace character followed by an alphabetic character anywhere in the string.
Match examples:
- "James Kramer"
- "Sir Richard Branson"
- "33 yoYo 654 ma"
Non-match examples:
- "33 66 4ju"
- "98iubi98g"
Regular expression: (^[A-Za-z])|(\s)([A-Za-z])
Validates dates formatted like &quot;dd.mm.yyyy&quot; or &quot;dd.mm.yy&quot;. Also the separators &quot;/&quot; and &quot;-&quot; are validated &quot;ok&quot;. This expression does not check leap years!
Match examples:
- "1.1.2004"
- "03.07.04"
- "1-03-03"
Non-match examples:
- "0.13.2004"
- "1.1.200"
Regular expression: ^(0{0,1}[1-9]|[12][0-9]|3[01])[- /.](0{0,1}[1-9]|1[012])[- /.](\d{2}|\d{4})$
Letter Grade scores A-F + and -
Match examples:
- "a+"
- "A"
- "F-"
Non-match examples:
- "z"
- "6"
Regular expression: (^[a-fA-F]+[+-]?$)
DD.MM.YY or DD.MM.YYYY
separator could be on choice '.' '/' or '-'
leap years compatible, 00 is treated as year 2000.
Match examples:
- "29.2.04"
- "29/02-2004"
- "3.4.05"
Non-match examples:
- "29.2.03"
- "2902.2004"
Regular expression: ^(((0?[1-9]|[12]\d|3[01])[\.\-\/](0?[13578]|1[02])[\.\-\/]((1[6-9]|[2-9]\d)?\d{2}))|((0?[1-9]|[12]\d|30)[\.\-\/](0?[13456789]|1[012])[\.\-\/]((1[6-9]|[2-9]\d)?\d{2}))|((0?[1-9]|1\d|2[0-8])[\.\-\/]0?2[\.\-\/]((1[6-9]|[2-9]\d)?\d{2}))|(29[\.\-\/]0?2[\.\-\/]((1[6-9]|[2-9]\d)?(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00)|00)))$
Specifier Format of Guid Values that this RegEx supports: 32 digits: [xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx] 32 digits separated by hyphens: [xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx] 32 digits separated by hyphens, enclosed in brackets: [{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}] 32 digits separated by hyphens, enclosed in parentheses: [(xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)]
Match examples:
- "914D226A-2F5B-4944-934D-96BBE6571977"
- "{914D226A-2F5B-4944-934D-96BBE6571977}"
- "cDcfd51109D9-FDB903CeFbDec4Ac5C1d"
Non-match examples:
- "914D226A-2F5B-4944-XXXX-96BBE6571977"
- "{914D226A-2F5B-4944-XXXX-96BBE6571977}"
Regular expression: ^[{|\(]?[0-9a-fA-F]{8}[-]?([0-9a-fA-F]{4}[-]?){3}[0-9a-fA-F]{12}[\)|}]?$
This US phone number edit with restricted format options: Accepts optional parens on area code with or without following space, and dashes between area code, central office code and station code. Formats include only (222) 555-1212 (with or without a space) and 222-555-1212. Conforms to NANP A-digit and D-digit requirements (ANN-DNN-NNNN). Area Codes 001-199 are not permitted; Central Office Codes 001-199 are not permitted.
Match examples:
- "(234) 555-1212"
- "(234)555-1212"
- "234-555-1212"
Non-match examples:
- "(234)5551212"
- "234 555 1212"
Regular expression: ^(?:\([2-9]\d{2}\)\ ?|(?:[2-9]\d{2}\-))[2-9]\d{2}\-\d{4}$
Time in 24h format; minutes must be two digits; hours may be one or two digits
Match examples:
- "3:23"
- "03:23"
- "16:59"
Non-match examples:
- "12:2"
- "12:76"
Regular expression: ^([0-1]?\d|2[0-3]):([0-5]\d)$
This expression is a very simplex expression that allows null values or 3 digits, dash, 3 digits, dash, 4 digits. It validates a basic US phone number.
Match examples:
- "555-555-1212"
- "123-456-7890"
- "489-876-1225"
Non-match examples:
- "555.555.1212"
- "(555) 555-1212"
Regular expression: ^(\d{3}-\d{3}-\d{4})*$
Match for dutch zip codes.
Dutch zip codes are always in the format of 4 digits and 2 letters.
Match examples:
- "1000AB"
- "3035KA"
- "9999ZZ"
Non-match examples:
- "AA1000"
- "Z1000"
Regular expression: [0-9]{4}[A-Z]{2}
This expression is an improved version of J&#246;rg Maag. It checks a date field in the Australian DD/MM/YYYY format. Besides, it also validates leap year between 1900 and 2099.
Match examples:
- "29/02/1992"
- "29/02/2000"
- "29/02/2004"
Non-match examples:
- "29/02/1892"
- "29/02/2100"
Regular expression: ^(((((0[1-9])|(1\d)|(2[0-8]))/((0[1-9])|(1[0-2])))|((31/((0[13578])|(1[02])))|((29|30)/((0[1,3-9])|(1[0-2])))))/((20[0-9][0-9]))|((((0[1-9])|(1\d)|(2[0-8]))/((0[1-9])|(1[0-2])))|((31/((0[13578])|(1[02])))|((29|30)/((0[1,3-9])|(1[0-2])))))/((19[0-9][0-9]))|(29/02/20(([02468][048])|([13579][26])))|(29/02/19(([02468][048])|([13579][26]))))$
This is the Brazilian Date Format.
DD/MM/YYYY with the right days per month.
Dates &gt;=1900 &lt;=2999.
Match examples:
- "29/02/2004"
- "31/01/1900"
- "31/01/2999"
Non-match examples:
- "29/02/2003"
- "12042004"
Regular expression: (((0[1-9]|[12][0-9]|3[01])([/])(0[13578]|10|12)([/])([1-2][0,9][0-9][0-9]))|(([0][1-9]|[12][0-9]|30)([/])(0[469]|11)([/])([1-2][0,9][0-9][0-9]))|((0[1-9]|1[0-9]|2[0-8])([/])(02)([/])([1-2][0,9][0-9][0-9]))|((29)(\.|-|\/)(02)([/])([02468][048]00))|((29)([/])(02)([/])([13579][26]00))|((29)([/])(02)([/])([0-9][0-9][0][48]))|((29)([/])(02)([/])([0-9][0-9][2468][048]))|((29)([/])(02)([/])([0-9][0-9][13579][26])))
This pattern matches whole numbers 1-100.
Match examples:
- "1"
- "50"
- "100"
Non-match examples:
- "0"
- ".5"
Regular expression: ^([1-9]|[1-9]\d|100)$
24 hour clock as prefered by MS-SQL, allows for shorter more human methods of writing time (no preceding zero or seconds required).
Match examples:
- "09:00:00"
- "09.00"
- "9:00"
Non-match examples:
- "9:00AM"
- "52/2/54/245"
Regular expression: ^(20|21|22|23|[01]\d|\d)(([:.][0-5]\d){1,2})$
This regex validates a persons first name. Acceptable names include compound names with a hyphen or a space in them.
Match examples:
- "Bobbie Sue"
- "Ana-Claire"
- "BobbyJoe"
Non-match examples:
- "Billy - Joe"
- "Billy Jr."
Regular expression: ^[a-zA-Z]+((\s|\-)[a-zA-Z]+)?$
This is an new data Validation to MM/YYYY from 1900 to 2999 this is an validation expression to Client From Month/Year.
Match examples:
- "01/1900"
- "10/1990"
- "12/2999"
Non-match examples:
- "1/1900"
- "12/1899"
Regular expression: (((0[123456789]|10|11|12)([/])(([1][9][0-9][0-9])|([2][0-9][0-9][0-9]))))
Matches 24 hour time format.
Match examples:
- "00:00"
- "23:59"
- "10:10"
Non-match examples:
- "24:00"
- "00:60"
Regular expression: ^(([1-9]{1})|([0-1][0-9])|([1-2][0-3])):([0-5][0-9])$
Matches 12 hour time format
Match examples:
- "1:00Am"
- "12:59pM"
- "05:05pm"
Non-match examples:
- "00:00am"
- "05:60pm"
Regular expression: ^(([1-9]{1})|([0-1][1-2])|(0[1-9])|([1][0-2])):([0-5][0-9])(([aA])|([pP]))[mM]$
Height notation for feet (') and inches(&quot;)
Match examples:
- "6'3&quot;"
- "5'11&quot;"
- "10'0&quot;"
Non-match examples:
- "9 Feet 2 inches"
- "5'12&quot;"
Regular expression: ^\d?\d'(\d|1[01])&quot;$
Matches all positive &amp; negative decimal floating point numbers, to any magnitude. Allows empty string.
Match examples:
- "4.4"
- ".4"
- "-.4"
Non-match examples:
- "."
- "..."
Regular expression: ^-?\d*(\.\d+)?$
This Expression checks if the value is an integer, positive, not zero and not a decimal.
Match examples:
- "1"
- "00000428123"
- "1230000"
Non-match examples:
- "0"
- "00000000"
Regular expression: ^[0-9]*[1-9]+$|^[1-9]+[0-9]*$
Simple US phone number matching, allowing area code or not. Allows spaces, dashes, dots, or none of the above. Area code, if entered, can be surrounded by parenthesis or not.
Match examples:
- "(555) 555-5555"
- "555.555.5555"
- "555-5555"
Non-match examples:
- "(555)-555-5555"
- "52/2/54/245"
Regular expression: ^(\(?[0-9]{3}[\)-\.]?\ ?)?[0-9]{3}[-\.]?[0-9]{4}$
Matches all positive decimal floating negative/non-negative numbers. Allows empty string.
Match examples:
- "0.55"
- "21232.00"
- "-89.20"
Non-match examples:
- "asdf"
- "+0.33"
Regular expression: ^(\-)?\d*(\.\d+)?$
Matches the number at the end of the string.
Match examples:
- "123"
- "aaa123"
- "aaa123aaa123"
Non-match examples:
- "aaa"
- "aaa123aaa"
Regular expression: ^((?:.*(?!\d))*(?:\D*)?)(\d+)$
Expression validating a series of hex codes (byte values) separated by spaces.
Match examples:
- "1b 2e"
- "1B 70 00 90 F0"
- "0A"
Non-match examples:
- "gh 4b"
- "1G 70 00 UU"
Regular expression: ^([0-9a-fA-F]{1,2})(\s[0-9a-fA-F]{1,2})*$
Matches basic SMTP server names.
Match examples:
- "smtp.yahoo.com"
- "smtp.charter.net"
- "smtp.ads.com"
Non-match examples:
- "pop.yahoo.com"
- "f34fvfv"
Regular expression: ^(smtp)\.([\w\-]+)\.[\w\-]{2,3}$
dd/mm/yyyy hh:MM:ss Datetime for all AD years, including leap years.
Match examples:
- "31.12.6008"
- "5:30 AM"
- "30-04-1066"
Non-match examples:
- "00/00/0000"
- "99:99:99"
Regular expression: ^(?=\d)(?:(?!(?:(?:0?[5-9]|1[0-4])(?:\.|-|\/)10(?:\.|-|\/)(?:1582))|(?:(?:0?[3-9]|1[0-3])(?:\.|-|\/)0?9(?:\.|-|\/)(?:1752)))(31(?!(?:\.|-|\/)(?:0?[2469]|11))|30(?!(?:\.|-|\/)0?2)|(?:29(?:(?!(?:\.|-|\/)0?2(?:\.|-|\/))|(?=\D0?2\D(?:(?!000[04]|(?:(?:1[^0-6]|[2468][^048]|[3579][^26])00))(?:(?:(?:\d\d)(?:[02468][048]|[13579][26])(?!\x20BC))|(?:00(?:42|3[0369]|2[147]|1[258]|09)\x20BC))))))|2[0-8]|1\d|0?[1-9])([-.\/])(1[012]|(?:0?[1-9]))\2((?=(?:00(?:4[0-5]|[0-3]?\d)\x20BC)|(?:\d{4}(?:$|(?=\x20\d)\x20)))\d{4}(?:\x20BC)?)(?:$|(?=\x20\d)\x20))?((?:(?:0?[1-9]|1[012])(?::[0-5]\d){0,2}(?:\x20[aApP][mM]))|(?:[01]\d|2[0-3])(?::[0-5]\d){1,2})?$
This is a pretty flexable phone number validator for US numbers. Allows optional country code and area code. Allows separation of numbers with &quot; &quot;, &quot;-&quot;, &quot;.&quot; or nothing to seperate. Area codes can be in parenthesis or not. Validates that you'll get 7, 10, or 11 digits in the way the most number of people option when writing them.
Match examples:
- "1(555)444-3333"
- "202.555.3333"
- "555-4444"
Non-match examples:
- "555-222-33334"
- "1(303)5a4-5555"
Regular expression: ^((\d[-. ]?)?((\(\d{3}\))|\d{3}))?[-. ]?\d{3}[-. ]?\d{4}$
Password must contain at least one letter, at least one number, and be longer than six charaters.
Match examples:
- "a1b2c3"
- "abcdefg123"
- "12345a"
Non-match examples:
- "abcdefghij"
- "1234567890"
Regular expression: ^(?=.*[0-9]+.*)(?=.*[a-zA-Z]+.*)[0-9a-zA-Z]{6,}$
Regular expression to evaluate a date in German date format (DD.MM.YYYY). Leading zeros for days and months are valid. Period from 1.1.2000 until 31.12.2099 is valid. Leap years are checked.
Match examples:
- "1.1.2000"
- "29.02.2004"
- "31.12.2099"
Non-match examples:
- "1.1.1999"
- "29.02.2003"
Regular expression: ^(((((0?[1-9])|(1\d)|(2[0-8]))\.((0?[1-9])|(1[0-2])))|((31\.((0[13578])|(1[02])))|((29|30)\.((0?[1,3-9])|(1[0-2])))))\.((20[0-9][0-9]))|(29\.0?2\.20(([02468][048])|([13579][26]))))$
This regexp is used to match c++, java, etc style multi-line and single line comments.
Match examples:
- "/* This is a multi-line comment */"
- "// this is a single-line"
- "// fahdui"
Non-match examples:
- "/sometext"
- "/*/"
Regular expression: (\/\*(\s*|.*?)*\*\/)|(\/\/.*)
Matches a .txt file extension.
Match examples:
- "testfile.txt"
- ".txt"
- "this is a file.txt"
Non-match examples:
- "this is not a file.trt"
- ".tst"
Regular expression: \.txt$
Matches valid VAT identification number for all current EU's member states, in format CC-xxx or CCxxx (where CC is country code and xxx actual VAT number).
Match examples:
- "CZ-7907111883"
- "ESA12345678"
- "FRAB123456789"
Non-match examples:
- "CZ55912"
- "XY123456"
Regular expression: ((DK|FI|HU|LU|MT|SI)(-)?\d{8})|((BE|EE|DE|EL|LT|PT)(-)?\d{9})|((PL|SK)(-)?\d{10})|((IT|LV)(-)?\d{11})|((LT|SE)(-)?\d{12})|(AT(-)?U\d{8})|(CY(-)?\d{8}[A-Z])|(CZ(-)?\d{8,10})|(FR(-)?[\dA-HJ-NP-Z]{2}\d{9})|(IE(-)?\d[A-Z\d]\d{5}[A-Z])|(NL(-)?\d{9}B\d{2})|(ES(-)?[A-Z\d]\d{7}[A-Z\d])
Matched Australian Postcodes, as defined by AusPost.
Many Australian developers are unaware of the small range of 3 digit, or 0 starting postcodes.
220 and 221 (or 0220 and 0221) are for ANU and LVR.
800s and 900s (or 0800s and 0900s) are for NT, and parts of SA, WA.
1000s are for big companies in Sydney, competition mailings, etc.
Match examples:
- "200"
- "0820"
- "2753"
Non-match examples:
- "700"
- "0700"
Regular expression: ^(((2|8|9)\d{2})|((02|08|09)\d{2})|([1-9]\d{3}))$
Checks for the format yyyy-MM-dd HH:mm:ss
also known as SortableDateTimePattern (conforms to ISO 8601) using local time. From 1900-01-01 00:00:00 to 9999-12-31 23:59:59. No check for leap year.
Match examples:
- "2004-07-12 14:25:59"
- "1900-01-01 00:00:00"
- "9999-12-31 23:59:59"
Non-match examples:
- "04-07-12 14:25:59"
- "20004-07-12 14:25"
Regular expression: ^(19[0-9]{2}|[2-9][0-9]{3})-((0(1|3|5|7|8)|10|12)-(0[1-9]|1[0-9]|2[0-9]|3[0-1])|(0(4|6|9)|11)-(0[1-9]|1[0-9]|2[0-9]|30)|(02)-(0[1-9]|1[0-9]|2[0-9]))\x20(0[0-9]|1[0-9]|2[0-3])(:[0-5][0-9]){2}$
This expression evaluates simple currency values... at least 1 digit and max 5 digits and if period then atleast one digit after period and max two digits after period
Match examples:
- "0"
- "00000"
- "00.00"
Non-match examples:
- "asds"
- "000000"
Regular expression: (^\d{1,5}$|^\d{1,5}\.\d{1,2}$)
Allows either inclusion of $ symbol or not. Allows a whitespace character after the $ sysmbol or not. Allows a negative symbol in front of the starting digit or not. Allows comma separators at thousands, but nowhere else. Allows more than two decimal places.
Match examples:
- "$1,000.00"
- "$-1,000.00"
- "100.8766"
Non-match examples:
- "$1a"
- "$#100.00"
Regular expression: ^(\$)?(\s)?(\-)?((\d+)|(\d{1,3})(\,\d{3})*)(\.\d{2,})?$
This RegEx can be used to varify (esp. when receiving data from forms) filenames. No Path is allowed. German Special Characters are allowed.
Match examples:
- "gut.txt"
- "afdsa.dfa"
- "t3e.fsd"
Non-match examples:
- "&amp;quatsch"
- "qua%tsch.txt"
Regular expression: ^[\w0-9&#228;&#196;&#246;&#214;&#252;&#220;&#223;\-_]+\.[a-zA-Z0-9]{2,6}$
simply checks to see if the first charactor is a . (dot)
Match examples:
- ".net"
- ".blah"
- ".anything"
Non-match examples:
- "net"
- "net.stuff"
Regular expression: ^\.{1}
This RE matches the height in feet and inches with decimals and without decimals in it
Match examples:
- "5'5.5&quot;"
- "2'3&quot;"
- "9'10.4&quot;"
Non-match examples:
- "5 feet 5.5 inches"
- "E:\DyAGT\SD01A_specV2.jpg"
Regular expression: ^\d?\d'(\d|1[01])?.?(\d|1[01])&quot;$
Regular expression that matches Mexican RFC's (Registro Federal de Contribuyentes).
Match examples:
- "LOZG7802117B9"
- "LOZG-780211-7B9"
- "LOZG780211-7B9"
Non-match examples:
- "LO-ZG-78-02-11-7B9"
- "52/2/54/245"
Regular expression: ^[A-Za-z]{4}[ |\-]{0,1}[0-9]{6}[ |\-]{0,1}[0-9A-Za-z]{3}$
IPv6 text representation of addresses without compression from RFC 1884. This regular expression doesn't allow IPv6 compression (&quot;::&quot;) or mixed IPv4 addresses.
Match examples:
- "FEDC:BA98:7654:3210:FEDC:BA98:7654:3210"
- "1080:0:0:0:8:800:200C:417A"
- "0:0:0:0:0:0:0:1"
Non-match examples:
- "128.0.0.1"
- "FEDC:BA98:7654:3210:FEDC:BA98:7654:3210:AA31"
Regular expression: ^([0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4}$
Matches only numbers, in any length. No characters or punctuation will be matched.
Match examples:
- "2"
- "99"
- "15800"
Non-match examples:
- "1,2"
- "f9"
Regular expression: ^[0-9]*$
Zip+4 Zip code RegEx. You may omit the +4 digits but you must also then omit the hyphen/dash as well.
Match examples:
- "98121"
- "00988"
- "12345-6789"
Non-match examples:
- "98121-"
- "12345-678"
Regular expression: ^\d{5}(-\d{4})?$
All positive non-zero integers between 1 and 999.
Match examples:
- "1"
- "561"
- "999"
Non-match examples:
- "-1"
- "0"
Regular expression: ^[1-9][0-9]{0,2}$
Match date patterns in the format of "dd.mm.yyyy" or "dd.mm/yyyy." It accounts for different variations in days, months, and leap years.
Match examples:
- "01.01.2004"
- "30.12.2005"
- "24.02.1980"
Non-match examples:
- "01/01/2004"
- "1.1.2004"
Regular expression: (((0[1-9]|[12][0-9]|3[01])([.])(0[13578]|10|12)([.])([1-2][0,9][0-9][0-9]))|(([0][1-9]|[12][0-9]|30)([.])(0[469]|11)([.])([1-2][0,9][0-9][0-9]))|((0[1-9]|1[0-9]|2[0-8])([.])(02)([.])([1-2][0,9][0-9][0-9]))|((29)(\.|-|\/)(02)([.])([02468][048]00))|((29)([.])(02)([.])([13579][26]00))|((29)([.])(02)([.])([0-9][0-9][0][48]))|((29)([.])(02)([.])([0-9][0-9][2468][048]))|((29)([.])(02)([.])([0-9][0-9][13579][26])))
This Regex matches Mexican RFC's (Registro Federal de Contribuyentes) with 3 or 4 letters in the first section. It accepts spaces and dashes between sections.
Match examples:
- "LOZG7502123T7"
- "LOZG-750212-3T7"
- "LOZ 750212 3T7"
Non-match examples:
- "LOZG750212"
- "f34fvfv"
Regular expression: ^[A-Za-z]{3,4}[ |\-]{0,1}[0-9]{6}[ |\-]{0,1}[0-9A-Za-z]{3}$
This regex pattern is designed to match integers from -12 to 12, whether they are positive or negative. It won't match non-integer values, values outside the range of -12 to 12, or non-numeric characters.
Match examples:
- "1"
- "-10"
- "10"
Non-match examples:
- "13"
- "-25"
Regular expression: ^([-]?[0-9])$|^([-]?[1][0-2])$
Regular expression that only allows expression in the format: MM/DD/YYYY
Match examples:
- "01/01/2004"
- "01/18/1159"
- "05/31/2631"
Non-match examples:
- "1/1/04"
- "01/01/04"
Regular expression: ^([01][012]|0[1-9])/([0-2][0-9]|[3][0-1])/([0-9][0-9][0-9][0-9])$
Strip C style block comments
Match examples:
- "/* comments */"
- "/*\n*\n*/"
- "/***********/"
Non-match examples:
- "// comments"
- "///f34fvfv"
Regular expression: \/\*((?!\*\/).)*\*\/
This RE validate dates in the dd.MM.yyyy format with leap years 100% integrated valid years from 1600 to 9999.
Match examples:
- "1.1.2004"
- "01.01.2004"
- "29.2.2004"
Non-match examples:
- "1/1/2004"
- "1-1-2004"
Regular expression: ^(((0?[1-9]|[12]\d|3[01])\.(0[13578]|[13578]|1[02])\.((1[6-9]|[2-9]\d)\d{2}))|((0?[1-9]|[12]\d|30)\.(0[13456789]|[13456789]|1[012])\.((1[6-9]|[2-9]\d)\d{2}))|((0?[1-9]|1\d|2[0-8])\.0?2\.((1[6-9]|[2-9]\d)\d{2}))|(29\.0?2\.((1[6-9]|[2-9]\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))))$
Deisgned to verify a MAC address with hex values seperated by a colon.
Match examples:
- "00:00:39:F9:3C:59"
- "00:90:83:6A:B3:B7"
- "00:00:39:59:30:5C"
Non-match examples:
- "00:0H:39:59:30:5C"
- "00:39:59:30:5C"
Regular expression: ((\d|([a-f]|[A-F])){2}:){5}(\d|([a-f]|[A-F])){2}
This is used to validate an Australian telephone number with no other characters than the () being used. Validates area code being between 01 - 09.
Match examples:
- "(02)12341234"
- "(03)12341234"
- "(05)12341234"
Non-match examples:
- "00 1234 1234"
- "00-1234-1234"
Regular expression: ^\(0[1-9]{1}\)[0-9]{8}$
For a maximum of 4 characters All values between 0.00 and 1.00. Allows Spaces / zeros prefixed / suffixed. Allows entering just the integer part or the decimal part as well.
Match examples:
- ".99"
- "1."
- "0.99"
Non-match examples:
- "10"
- "0100"
Regular expression: ^((\s|[0])\.(\d{0,2}\s{0,2}))?$|^(\.(\d\s){0,2})?$|^(\s{0,4}[1]{0,1}\.[0]{0,2}\s{0,4})?$|^(\s{0,4}[1]{0,1}\s{0,4})?$|^(\s{0,4}[0]{0,4}[1]{0,1}\s{0,4})?$|^([0]{0,4}\s{0,4})?$|^(\s{0,3}[0]{0,3}\.{1}\d{0,2}\s{0,2})?$
Validate that the string contains only alphanumeric characters or an underscore. The first character cannot be anything else than alphabetic character. We use that to make sure the provided string can be a variable/entity name.
Match examples:
- "MyVariable"
- "intWhatever"
- "Blah_Blah"
Non-match examples:
- "1stVariable"
- "654"
Regular expression: ^[a-zA-Z][a-zA-Z0-9_]+$
This regex pattern is designed to match phone numbers that start with digits 7, 8, or 9, followed by either a hyphen-separated format (e.g., "777-1234") or a continuous format (e.g., "7771234567"). It won't match phone numbers with other leading digits or phone numbers that don't conform to this specific pattern.
Match examples:
- "9999-9595"
- "88888787"
- "7777-6589"
Non-match examples:
- "44445555"
- "2222-9658"
Regular expression: ((([7-9])(\d{3})([-])(\d{4}))|(([7-9])(\d{7})))
Expression validating a hex string of any length.
Match examples:
- "1E3"
- "82E5AAA4"
- "01ff"
Non-match examples:
- "1g3"
- "4Z"
Regular expression: ^([0-9a-fA-F])*$
THE Complex Password Filter Matching 3 of 4 Character catagories:
1.) at least 1 upper case character
2.) at least 1 lower case character
3.) at least 1 numerical character
4.) at least 1 special character
It also enforces a min and max length and works for .Net and script Regex implimentations.
Match examples:
- "Passw0rd"
- "assW@rd"
- "1B2a345@#$%"
Non-match examples:
- "123123123"
- "Password"
Regular expression: (?=^.{6,255}$)((?=.*\d)(?=.*[A-Z])(?=.*[a-z])|(?=.*\d)(?=.*[^A-Za-z0-9])(?=.*[a-z])|(?=.*[^A-Za-z0-9])(?=.*[A-Z])(?=.*[a-z])|(?=.*\d)(?=.*[A-Z])(?=.*[^A-Za-z0-9]))^.*
This will make sure that if your number starts w. a 99 it will have 10 more digits after it and if it starts w. a 5 it will also have 10 digits after that. So if you have a number starting with 99 it must be 12 digits long if it starts with a 5 it must be 11.
Match examples:
- "991234567890"
- "51234567890"
- "57960452339"
Non-match examples:
- "99123456789"
- "91234567890"
Regular expression: ^[9]9\d{10}|^[5]\d{10}
This is the simplest RegEx for validating someone's name. The name can contain only alphabets(in either case) &amp; should be of minimum length 4 &amp; maximum length 32. Only white spaces are allowed apart from alphabets.
Match examples:
- "some body"
- "hey there"
- "hello"
Non-match examples:
- "hi"
- "hey 27"
Regular expression: ^([a-zA-z\s]{4,32})$
Matches all IPv6 text representations as defined within RFC 2373.
Match examples:
- "::0:0:0:FFFF:129.144.52.38"
- "FEDC:BA98::3210:FEDC:BA98:7654:3210"
- "::13.1.68.3"
Non-match examples:
- "FEDC:BA98:7654:3210:FEDC:BA98:7654:3210:1234"
- "3210:FEDC:BA98:7654:3210:1234"
Regular expression: ^(^(([0-9A-F]{1,4}(((:[0-9A-F]{1,4}){5}::[0-9A-F]{1,4})|((:[0-9A-F]{1,4}){4}::[0-9A-F]{1,4}(:[0-9A-F]{1,4}){0,1})|((:[0-9A-F]{1,4}){3}::[0-9A-F]{1,4}(:[0-9A-F]{1,4}){0,2})|((:[0-9A-F]{1,4}){2}::[0-9A-F]{1,4}(:[0-9A-F]{1,4}){0,3})|(:[0-9A-F]{1,4}::[0-9A-F]{1,4}(:[0-9A-F]{1,4}){0,4})|(::[0-9A-F]{1,4}(:[0-9A-F]{1,4}){0,5})|(:[0-9A-F]{1,4}){7}))$|^(::[0-9A-F]{1,4}(:[0-9A-F]{1,4}){0,6})$)|^::$)|^((([0-9A-F]{1,4}(((:[0-9A-F]{1,4}){3}::([0-9A-F]{1,4}){1})|((:[0-9A-F]{1,4}){2}::[0-9A-F]{1,4}(:[0-9A-F]{1,4}){0,1})|((:[0-9A-F]{1,4}){1}::[0-9A-F]{1,4}(:[0-9A-F]{1,4}){0,2})|(::[0-9A-F]{1,4}(:[0-9A-F]{1,4}){0,3})|((:[0-9A-F]{1,4}){0,5})))|([:]{2}[0-9A-F]{1,4}(:[0-9A-F]{1,4}){0,4})):|::)((25[0-5]|2[0-4][0-9]|[0-1]?[0-9]{0,2})\.){3}(25[0-5]|2[0-4][0-9]|[0-1]?[0-9]{0,2})$$
Allows you to check the length of a number (in this case either 3 or 4 digits).
Match examples:
- "123"
- "1234"
- "456"
Non-match examples:
- "12"
- "12345"
Regular expression: ^([0-9]{3,4})$
This pattern matches is for validating Names, Cities, States, Countries etc that require only alphabet inputs with white spaces. It requires at least 2 characters &amp; there's no limit on maximum number of characters.
Match examples:
- "Amit Gupta"
- "Some Body"
- "hello world"
Non-match examples:
- "A"
- "Someplace23"
Regular expression: ^([a-zA-z\s]{2,})$
Matches an israely phone number with country code. With or without the plus sign. Also allows two or one digit in city code. Checks for a valid city code (02,03,04,08,09)
Match examples:
- "+972-4-8253055"
- "972-4-8615466"
- "972-04-8564521"
Non-match examples:
- "04-5487665"
- "05-455665545"
Regular expression: ^\+?972(\-)?0?[23489]{1}(\-)?[^0\D]{1}\d{6}$
This is a simple expression used to match a normal 12 hour clock, requires AM/PM in any or mixed case and requires a space before the AM or PM and minutes are required.
Match examples:
- "1:45 am"
- "12:01 aM"
- "01:23 pm"
Non-match examples:
- "13:34 am"
- "1:60 am"
Regular expression: ^((0?[1-9]|1[012])(:[0-5]\d){1,2}(\ [AaPp][Mm]))$
Single field zip code validator, useful for Web Forms. Allows user to enter 5-digit or 5-digit plus 4 zip code, with hyphen or space or NO space between last 4 digits.
Match examples:
- "92078-4705"
- "920784705"
- "92078 4705"
Non-match examples:
- "9027x"
- "902"
Regular expression: ^\d{5}((-|\s)?\d{4})?$