Datasets:

expression
stringlengths
4
1.37k
raw_prompt
stringlengths
11
1.08k
refined_prompt
stringlengths
79
906
matches
sequence
non_matches
sequence
id
int64
1
4.11k
^1000([.][0]{1,3})?$|^\d{1,3}$|^\d{1,3}([.]\d{1,3})$|^([.]\d{1,3})$
allows positive none-to-3-decimal values between 0.000 and 1000.000
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"
[ ".123", "0.126", "1000.000", "468", "46", "4", "87", "486", "56.545", "78.418", "54.513", "847", "48.15" ]
[ ".1234", "0.1b6", "1000.001", "-123", "123.456.789", "43.v234", "52650", "12f3.21f3.213f", "qwerty@123.123", "1-1-2", "(0xx12) 62509", "++63453.345" ]
537
^(\-)?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
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"
[ "123.456", "-0.125", "-1000.000", "516", "897", "187", "976", "-184", "951", "-357", "486.185", "-984.4", "158.97" ]
[ "123.4567", "-0.1b5", "-1000.001", "198189", "846526.489", "48914", "956..41568956", "4856.489498", "48.489561", "*153.2245", "4836.4689", "486354653" ]
538
^((\d{1,2})?([.][\d]{1,2})?){1}[%]{1}$
for checking a value is between 99.99% and 00.00%
for checking a value is between 99.99% and 00.00% Match examples: - "99.99%" - "9%" - ".09%" Non-match examples: - "99" - "9.%"
[ "99.99%", "9%", ".09%", "48%", "91%", "54%", "98%", "32.44%", "56.44%", "78.87%", "87.55%", "97.12%", "58.78%" ]
[ "99", "9.%", "259", "195", "87", "86", "486", "3142.514%", "%73", "%7836l.23", "%342.23", "%332.42423" ]
547
(^[A-Za-z])|(\s)([A-Za-z])
This expression will return the first letter of each word in a string. Best used if you need to get initials from a name. "James Kramer" = "J K" & "Sir Richard Branson" = "S R B" & "33 yoYo 654 ma" = "y m"
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"
[ "James Kramer", "Sir Richard Branson", "33 yoYo 654 ma", "f hfius", "j jaif", "y uihs", "h fjioa", "jiufs fjsi", "usifd uisdhf", "U ADFSF", "FSIDO F SAI", "UFD SDFUH FDSIU", "No Space" ]
[ "33 66 4ju", "98iubi98g", "8977y", "7gyuh", "5drtcf", "56ftyvg", "65ftyvg", "6ftyvg", "8f67tgyubh4548", "4edr54r65ft", "6fty", "6fty" ]
550
^(0{0,1}[1-9]|[12][0-9]|3[01])[- /.](0{0,1}[1-9]|1[012])[- /.](\d{2}|\d{4})$
Validates dates formatted like "dd.mm.yyyy" or "dd.mm.yy". Also the separators "/" and "-" are validated "ok". This expression does not check leap years! I did this expression cause I could hardly find any date regex that supports those "dot-formats".
Validates dates formatted like "dd.mm.yyyy" or "dd.mm.yy". Also the separators "/" and "-" are validated "ok". 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"
[ "1.1.2004", "03.07.04", "1-03-03", "29 12/5199", "21.08.29", "31/7/22", "30.11-93", "30.02.99", "30.12.83", "30.11/37", "21.10-50", "6-11/02", "30.5.4056" ]
[ "0.13.2004", "1.1.200", "32.0.03", "12/123/4322", "2346-2345-2435", "43.v234", "/5/5/5", "/5/5/20022", "000-000", "1-1-2", "(0xx12) 62509", "12/132/90" ]
571
(^[a-fA-F]+[+-]?$)
Letter Grade scores A-F + and -
Letter Grade scores A-F + and - Match examples: - "a+" - "A" - "F-" Non-match examples: - "z" - "6"
[ "a+", "A", "F-", "A-", "B", "B+", "B-", "C+", "C", "C-", "D", "D+", "D-" ]
[ "z", "6", "D +", "Z+", "O-", "K+", "u_", "fsd", "uf", "q", "y", "p" ]
578
^(((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)))$
DD.MM.YY or DD.MM.YYYY separator could be on choice '.' '/' or '-' leap years compatible, 00 is treated as year 2000.
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"
[ "29.2.04", "29/02-2004", "3.4.05", "29.02/7200", "6.11-8609", "31-10.1886", "29-3.7533", "10.12/66", "29.02-72", "3/2.4035", "29.2/4000", "14/7.07", "7/12/1820" ]
[ "29.2.03", "2902.2004", "12.31.1975", "12/123/4322", "2346-2345-2435", "43.v234", "/5/5/5", "/5/5/20022", "432/524/2435", "1-1-2", "(0xx12) 62509", "12/132/90" ]
583
^[{|\(]?[0-9a-fA-F]{8}[-]?([0-9a-fA-F]{4}[-]?){3}[0-9a-fA-F]{12}[\)|}]?$
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)]
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}"
[ "914D226A-2F5B-4944-934D-96BBE6571977", "{914D226A-2F5B-4944-934D-96BBE6571977}", "cDcfd51109D9-FDB903CeFbDec4Ac5C1d", "|FAE6a115-BdefE8FB-8A42-e8E57ddBba81}", "(55e634D0-9CFDFEAB51b3969dB1e39EDc|", "7e6aE28Beb06-dAE7-bE4A8A93c76fF402)", "5ea140cB-5eF8-e3aA1BCe-a6e3fa039B9a", "ff0DcCBf-57A9-bB49C58E-de54Cb33B0EA", "|C57D9B5d-ea11-Cb3e-6b09d448DF7Fcd6f", "(9DAB5864-F9a8-F11B-637BeeCfF514EeC8", "{ac62A505b69F26B10E0daf6B03c57F59)", "(e5cCFa8e-ec3C-B6FD-3D7c6bfdD2df819C", "BF8F2daa-E5ECfDC8e1EA-ffa12F5Fa5c3)" ]
[ "914D226A-2F5B-4944-XXXX-96BBE6571977", "{914D226A-2F5B-4944-XXXX-96BBE6571977}", "2534/52435234/2453", "fasd@fds.fasd@", "sfalijad234", "there is a boy", "@#dfkjnav", "12f3.21f3.213f", "u09nKLJG FSL", "341.431v4f3.fv1", "abc111def", "++63453.345" ]
590
^(?:\([2-9]\d{2}\)\ ?|(?:[2-9]\d{2}\-))[2-9]\d{2}\-\d{4}$
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.
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"
[ "(234) 555-1212", "(234)555-1212", "234-555-1212", "(974)528-1703", "636-848-9886", "(658) 257-3763", "(331)928-3455", "276-642-9971", "507-320-0937", "(841)544-3610", "509-981-3769", "448-879-3363", "827-477-1540" ]
[ "(234)5551212", "234 555 1212", "234) 555-1212", "12/123/4322", "2346-2345-2435", "$23.454", "/5/5/5", "12f3.21f3.213f", "432/524/2435", "1-1-2", "34.31", "++63453.345" ]
607
^([0-1]?\d|2[0-3]):([0-5]\d)$
Time in 24h format; minutes must be two digits; hours may be one or two digits
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"
[ "3:23", "03:23", "16:59", "21:37", "7:10", "22:02", "20:40", "14:46", "01:01", "22:35", "22:48", "22:24", "6:59" ]
[ "12:2", "12:76", "33:12", "48:79", "48:64", "15:97", "75:97", "12:87", "31:87", "64:87", "69:87", "21:97" ]
610
^(\d{3}-\d{3}-\d{4})*$
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. Written by Jason N. Gaylord.
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"
[ "555-555-1212", "123-456-7890", "489-876-1225", "785-986-3214", "654-987-3214", "845-625-9832", "542-653-9875", "852-963-1545", "987-231-4567", "982-452-4568", "845-124-1234", "456-123-8742", "648-875-9898" ]
[ "555.555.1212", "(555) 555-1212", "5555551212", "12/123/4322", "2346-2345-2435", "43.v234", "/5/5/5", "/5/5/20022", "qwerty@123.123", "1-1-2", "(0xx12) 62509", "489-485-41565" ]
619
[0-9]{4}[A-Z]{2}
Match for dutch zipcodes. Dutch zipcodes are always in the format of 4 digits and 2 letters.
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"
[ "1000AB", "3035KA", "9999ZZ", "6887HD", "5831GP", "8535CK", "5657PR", "0671PV", "1064VW", "2824TF", "7837PQ", "2753XF", "3155WK" ]
[ "AA1000", "Z1000", "1000-CC", "12/123/4322", "sfalijad234", "$23.454", "@#dfkjnav", "/5/5/20022", "qwerty@123.123", "adfa2", "sda sad", "8h98009hu" ]
623
^(((((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 expression is an improved version of Jörg Maag. It checks a date field in the Australian DD/MM/YYYY format. Besides, it also validates leap year between 1900 and 2099.
This expression is an improved version of Jö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"
[ "29/02/1992", "29/02/2000", "29/02/2004", "15/12/2076", "23/02/1949", "29/02/2016", "07/08/2093", "29/02/1972", "27/09/1925", "29/02/1956", "31/12/2011", "21/12/1975", "29/02/1956" ]
[ "29/02/1892", "29/02/2100", "29/02/3004", "12/123/4322", "2346-2345-2435", "2/3/a5235", "/5/5/5", "/5/5/20022", "432/524/2435", "1-1-2", "(0xx12) 62509", "12/132/90" ]
626
(((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 is the Brazilian Date Format. DD/MM/YYYY with the right days per month. Dates >=1900 <=2999.
This is the Brazilian Date Format. DD/MM/YYYY with the right days per month. Dates >=1900 <=2999. Match examples: - "29/02/2004" - "31/01/1900" - "31/01/2999" Non-match examples: - "29/02/2003" - "12042004"
[ "29/02/2004", "31/01/1900", "31/01/2999", "30/11/2033", "07/02/2001", "29.02/6000", "29/02/5600", "29/02/0708", "29/02/8484", "29/02/4532", "29/02/7452", "30/01/2097", "29/02/5200" ]
[ "29/02/2003", "12042004", "20/04/04", "12/123/4322", "2346-2345-2435", "$23.454", "/5/5/5", "/5/5/20022", "432/524/2435", "1-1-2", "9/9/9", "12/132/90" ]
627
^([1-9]|[1-9]\d|100)$
This pattern matches whole numbers 1-100.
This pattern matches whole numbers 1-100. Match examples: - "1" - "50" - "100" Non-match examples: - "0" - ".5"
[ "1", "50", "100", "48", "98", "15", "32", "69", "78", "99", "52", "16", "21" ]
[ "0", ".5", "101", "256", "159", "1594", "651", "561", "615561", "561", "-1144", "-4" ]
634
^(20|21|22|23|[01]\d|\d)(([:.][0-5]\d){1,2})$
24 hour clock as prefered by MS-SQL, allows for shorter more human methods of writing time (no preceding zero or seconds required). MS-SQL prefers semi-colon although this accepts full stops for users ease of use.
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"
[ "09:00:00", "09.00", "9:00", "21:41", "8.26", "23:07", "20.28.23", "22.21", "22.06:54", "22.23", "22.04.19", "20.06:50", "23:51" ]
[ "9:00AM", "52/2/54/245", "34f2vf42e", "-123", "2346-2345-2435", "43.v234", "/5/5/5", "98iojk", "432/524/2435", "1-1-2", "34.31", "32542" ]
635
^[a-zA-Z]+((\s|\-)[a-zA-Z]+)?$
This regex validates a persons first name. Acceptable names include compound names with a hyphen or a space in them.
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."
[ "Bobbie Sue", "Ana-Claire", "BobbyJoe", "Jfjsid Jfdsi", "Jfd Jisf", "Bob Cat", "Apple Dog", "Pine Apple", "Peach Grape", "Orange Singapore", "China Usa", "Lionel Messi", "Neymar-Dasilva" ]
[ "Billy - Joe", "Billy Jr.", "Thos.", "-123", "2346-2345-2435", "$23.454", "@#dfkjnav", "98iojk", "qwerty@123.123", "com.edu.github", "abc111def", "0j0jweBBBB" ]
637
(((0[123456789]|10|11|12)([/])(([1][9][0-9][0-9])|([2][0-9][0-9][0-9]))))
This is an new data Validation to MM/YYYY from 1900 to 2999 this is an validation expression to Client From MOnth/Year.
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"
[ "01/1900", "10/1990", "12/2999", "10/1913", "11/2143", "12/1936", "10/2254", "07/2129", "11/1956", "11/1999", "11/2541", "12/1984", "10/2375" ]
[ "1/1900", "12/1899", "01/3000", "12/123/4322", "445/156", "516/159", "/894/4895", "8494/48984", "84/8494", "594/54984", "849/815", "/48/9984" ]
639
^(([1-9]{1})|([0-1][0-9])|([1-2][0-3])):([0-5][0-9])$
Matches 24 hour time format.
Matches 24 hour time format. Match examples: - "00:00" - "23:59" - "10:10" Non-match examples: - "24:00" - "00:60"
[ "00:00", "23:59", "10:10", "6:50", "17:59", "14:50", "7:18", "14:34", "22:46", "12:19", "23:51", "21:47", "10:31" ]
[ "24:00", "00:60", "25:61", "48:48", "984:489", "43.v234", "/5/5/5", "98iojk", "48:489", "98:48", "79:79", "31:84" ]
640
^(([1-9]{1})|([0-1][1-2])|(0[1-9])|([1][0-2])):([0-5][0-9])(([aA])|([pP]))[mM]$
Matches 12 hour time format
Matches 12 hour time format Match examples: - "1:00Am" - "12:59pM" - "05:05pm" Non-match examples: - "00:00am" - "05:60pm"
[ "1:00Am", "12:59pM", "05:05pm", "01:54am", "08:31Pm", "06:14am", "12:19aM", "12:55am", "02:09Am", "12:53Pm", "10:37Pm", "6:55am", "6:35pM" ]
[ "00:00am", "05:60pm", "1:00", "12/123/4322", "2346-2345-2435", "43.v234", "/5/5/5", "/5/5/20022", "432/524/2435", "1-1-2", "(0xx12) 62509", "12/132/90" ]
641
^\d?\d'(\d|1[01])"$
Height notation for feet (') and inches(")
Height notation for feet (') and inches(") Match examples: - "6'3"" - "5'11"" - "10'0"" Non-match examples: - "9 Feet 2 inches" - "5'12""
[ "6'3"", "5'11"", "10'0"", "5'6"", "56'11"", "73'6"", "5'11"", "3'2"", "3'10"", "2'11"", "86'11"", "06'11"", "10'10"" ]
[ "9 Feet 2 inches", "5'12"", "5'2 1/2"", "Mastercard", "sfalijad234", "$23.454", "@#dfkjnav", "98iojk", "qwerty@123.123", "adfa2", "abc111def", "0j0jweBBBB" ]
645
^-?\d*(\.\d+)?$
Matches all positive & negative decimal floating point numbers, to any magnitude. Allows empty string.
Matches all positive & negative decimal floating point numbers, to any magnitude. Allows empty string. Match examples: - "4.4" - ".4" - "-.4" Non-match examples: - "." - "..."
[ "4.4", ".4", "-.4", "45.48", "645.645", "156.48", "46.48", "468.56", "-5.4", "-65.54", "-984.89", "-89.5612", "-486.7" ]
[ ".", "...", "zero", "12/123/4322", "#@RE", "43.v234", "@#dfkjnav", "/5/5/20022", "qwerty@123.123", "1-1-2", "(0xx12) 62509", "12/132/90" ]
647
^[0-9]*[1-9]+$|^[1-9]+[0-9]*$
This Expression checks if the value is an integer, positive, not zero and not a decimal. Very handy for use when people need to fill in whole numbers, like when ordering car parts on a website (you dont want your customers to order -10 tires or 0.7 mirrors..
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"
[ "1", "00000428123", "1230000", "485", "48156", "45", "56", "5148", "98489", "156473", "1554", "879567", "89" ]
[ "0", "00000000", "any text or +, - or any other character", "56198adf", "4894adf", "84dafds", "9849fsad", "d7uyhy78", "8g7yu", "8gur", "76fyrt", "76fytuhi324" ]
652
^(\(?[0-9]{3}[\)-\.]?\ ?)?[0-9]{3}[-\.]?[0-9]{4}$
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.
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"
[ "(555) 555-5555", "555.555.5555", "555-5555", "178 073.3485", "060-7814", "754601.3692", "032-7931", "0068635", "278771-8970", "3615499", "162.6806", "8458550909", "472-3277" ]
[ "(555)-555-5555", "52/2/54/245", "2534/52435234/2453", "12/123/4322", "2346-2345-2435", "$23.454", "/5/5/5", "12f3.21f3.213f", "432/524/2435", "341.431v4f3.fv1", "(0xx12) 62509", "12/132/90" ]
654
^(\-)?\d*(\.\d+)?$
Matches all positive decimal floating negative/non-negative numbers. Allows empty string.
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"
[ "0.55", "21232.00", "-89.20", "-651.948", "4.684", "-156.48", "48.84", "-48.51", "648.68", "648.6584", "-516.156", "468.64", "-546.8947" ]
[ "asdf", "+0.33", "g8yu", "78gy", "g8y", "g8y8gy8f", "@#dfkjnav", "/5/5/20022", "432/524/2435", "1-1-2", "(0xx12) 62509", "++63453.345" ]
655
^((?:.*(?!\d))*(?:\D*)?)(\d+)$
Matches the number at the end of the string.
Matches the number at the end of the string. Match examples: - "123" - "aaa123" - "aaa123aaa123" Non-match examples: - "aaa" - "aaa123aaa"
[ "123", "aaa123", "aaa123aaa123", "vuyy76", "uy76", "utydf987", "ivy75", "uyvhv4", "uiy56", "uctgfhj6", "igfui9", "cygjh2", "ertyuio8" ]
[ "aaa", "aaa123aaa", "afdsffugyd", "igyug87guybh", "yugh78gyuhbjuhgy", "ftyudy65drftyTYGV", "67TFYG76F", "YTF6FTYFDT", "TFYG657T8GG", "RTXYGD56DRTDYDRT", "DTRD54DR", "65ETYDF" ]
656
^([0-9a-fA-F]{1,2})(\s[0-9a-fA-F]{1,2})*$
Expression validating a series of hex codes (byte values) separated by spaces.
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"
[ "1b 2e", "1B 70 00 90 F0", "0A", "1b 2C", "3D 4e 5F", "FF", "00", "7", "A", "B C", "8 9", "10 11", "1C 1D 1E 1F" ]
[ "gh 4b", "1G 70 00 UU", "2534/52435234/2453", "12/123/4322", "hiu iuh", "iug uh vh", "gy", "hu", "yg oi fw we", "uh qw fh fh", "iu fo qw oe rq", "hu hf qw fi as qw we" ]
660
^(smtp)\.([\w\-]+)\.[\w\-]{2,3}$
Matches basic SMTP server names.
Matches basic SMTP server names. Match examples: - "smtp.yahoo.com" - "smtp.charter.net" - "smtp.ads.com" Non-match examples: - "pop.yahoo.com" - "f34fvfv"
[ "smtp.yahoo.com", "smtp.charter.net", "smtp.ads.com", "smtp.gfd.com", "smtp.example.fgh", "smtp.gfd.com", "smtp.fha.com", "smtp.gafd.net", "smtp.ywr.net", "smtp.ery.trt", "smtp.bf.ver", "smtp.few.gwg", "smtp.hgs.net" ]
[ "pop.yahoo.com", "f34fvfv", "34f2vf42e", "Mastercard", "sfalijad234", "43.v234", "@#dfkjnav", "/5/5/20022", "432/524/2435", "adfa2", "(0xx12) 62509", "12/132/90" ]
673
^(?=\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})?$
dd/mm/yyyy hh:MM:ss Datetime for all AD years, including leap years. Javascript safe version of http://regexlib.com/REDetails.aspx?regexp_id=691. Please see that regex for details of what is being checked
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"
[ "31.12.6008", "5:30 AM", "30-04-1066", "6-10-8698", "20:18:59", "16:56:18", "23:45:46", "10-10-2405", "31-10-6651", "08:20:28", "10 Am", "20:15", "08:16:16 pM" ]
[ "00/00/0000", "99:99:99", "29/02/2005", "12/123/4322", "2346-2345-2435", "43.v234", "AAAAAAA", "/5/5/20022", "432/524/2435", "adfa2", "(0xx12) 62509", "12/132/90" ]
676
^((\d[-. ]?)?((\(\d{3}\))|\d{3}))?[-. ]?\d{3}[-. ]?\d{4}$
This is a pretty flexable phone number validator for US numbers. Allows optional country code and area code. Allows separation of numbers with " ", "-", "." 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.
This is a pretty flexable phone number validator for US numbers. Allows optional country code and area code. Allows separation of numbers with " ", "-", "." 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"
[ "1(555)444-3333", "202.555.3333", "555-4444", "(485)2293192", "8820265", "(940) 601-9212", "5(320)904.3030", "969 3892", "019-7942", "(093)358 1443", "040-5517653", "364.6479", "9835 059-0993" ]
[ "555-222-33334", "1(303)5a4-5555", "1 202) 111-3333", "12/123/4322", "2346-2345-2435", "43.v234", "@#dfkjnav", "/5/5/20022", "432/524/2435", "1-1-2", "(0xx12) 62509", "++63453.345" ]
678
^(?=.*[0-9]+.*)(?=.*[a-zA-Z]+.*)[0-9a-zA-Z]{6,}$
Password must contain at least one letter, at least one number, and be longer than six charaters.
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"
[ "a1b2c3", "abcdefg123", "12345a", "67gyihu", "r67ty8hu", "6ft7gy8h", "65cftvg7y", "s3e4dr5ft6gy7h", "3wse4dr5ft64dfr5t6", "5rft6g", "d5rft6gy7h", "5rft6g7y", "xed4rtgv" ]
[ "abcdefghij", "1234567890", "jsfkdhakjdfhbjkh", "yufiuyfkuyfu", "234567890567", "uvv7", "67f", "5d4", "67ff", "65fd", "i9", "u8" ]
684
^(((((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]))))$
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.
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"
[ "1.1.2000", "29.02.2004", "31.12.2099", "9.11.2052", "31.10.2063", "11.04.2066", "12.04.2021", "31.08.2070", "29.2.2044", "29.04.2074", "29.2.2008", "29.02.2096", "31.07.2060" ]
[ "1.1.1999", "29.02.2003", "01.01.2100", "12/123/4322", "2346-2345-2435", "$23.454", "/5/5/5", "/5/5/20022", "432/524/2435", "1-1-2", "(0xx12) 62509", "12/132/90" ]
688
(\/\*(\s*|.*?)*\*\/)|(\/\/.*)
This regexp is used to match c++,java,etc style multi-line and single line comments.
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" - "/*/"
[ "/* This is a multi-line comment */", "// this is a single-line", "// fahdui", "// fdhsaiu", "// fhdsuiah", "// ahfdisuh", "// fdhsaiuh", "// uh8hfds", "// fhj89ewh", "// h8euwh8", "/* This is afdsant */", "/* This iadft */", "/* Thfadsnt */" ]
[ "/sometext", "/*/", "/aguysdfb", "/fabsduyg87dyuhs", "/g78fsudi", "/*fhudsifdsb", "/usydfgufdsg", "/ysfg", "/fgysduf67e2", "1-1-2", "(0xx12) 62509@", "12/132/90" ]
689
\.txt$
Matches a file extention.
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"
[ "testfile.txt", ".txt", "this is a file.txt", "fasduht.txt", "gfadf.txt", "fsgh.txt", "apple.txt", "dog.txt", "demo.txt", "test.txt", "abc.txt", "test2.txt", "uadfh.txt" ]
[ "this is not a file.trt", ".tst", ".text", "fsdyfubsh", "uysdf8gy", "bhf67y", "76", "f7uy", "ougtxt", "gyfgd", "ft7ft67y", "f6tyg" ]
693
((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])
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).
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"
[ "CZ-7907111883", "ESA12345678", "FRAB123456789", "IT29718370337", "SE-864625192808", "LV-10527473548", "CY-67720099A", "NL105141803B34", "LT761853862266", "ATU97894110", "CZ-04262873", "IT02029028652", "FR-1X030074294" ]
[ "CZ55912", "XY123456", "FR-IB123456789", "ewsdfwef23ewdsff", "23ewsdfw7yugy", "f67yuf87yug8ub", "g8yu8gyFYGU", "G8YUBG8UBTF", "TFYGF67YGUCTV7", "FYVUTCVUGTF7YY", "6D7TFUYGUHIG7F6TY", "F76TYUGIHOJ" ]
697
^(((2|8|9)\d{2})|((02|08|09)\d{2})|([1-9]\d{3}))$
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.
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"
[ "200", "0820", "2753", "865", "6247", "3773", "0902", "982", "0937", "9607", "0852", "259", "0235" ]
[ "700", "0700", "abcd", "4897FDS", "79865DSFSF", "4985689456", "FS4D8", "489FSD", "FS894D78796", "894561", "89456123", "1" ]
703
^(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}$
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.
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"
[ "2004-07-12 14:25:59", "1900-01-01 00:00:00", "9999-12-31 23:59:59", "5930-04-14 17:38:38", "2323-09-15 13:48:38", "1976-02-12 23:58:58", "7750-02-25 04:19:35", "8859-10-06 23:16:25", "6865-11-04 20:47:46", "4749-02-05 12:58:40", "2135-10-20 06:33:01", "3847-10-25 07:59:02", "4962-11-13 21:23:51" ]
[ "04-07-12 14:25:59", "20004-07-12 14:25", "2004/07/12 14:25:59", "12/123/4322 14:25:59", "2346-2345-2435 14:25:59", "$23.454 14:25:59", "/5/5/5 14:25:59", "/5/5/20022", "14:25:59432/524/2435", "1-1-2 14:25:59", "(0xx12) 62509 14:25:59", "12/132/90" ]
704
(^\d{1,5}$|^\d{1,5}\.\d{1,2}$)
This expression evaluates simple currency values... alteast 1 digit and max 5 digits and if period then atleast one digit after period and max two digits after period
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"
[ "0", "00000", "00.00", "84", "645", "48", "489", "846", "987", "654", "321", "5164", "9835" ]
[ "asds", "000000", "00000.", "12/123/4322", "51:534", "$23.454fd", "/5/5/5", "/5/5/20022", "432/524/2435", "1-1-2", "(0xx12) 62509", "12/132/90" ]
708
^(\$)?(\s)?(\-)?((\d+)|(\d{1,3})(\,\d{3})*)(\.\d{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.
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"
[ "$1,000.00", "$-1,000.00", "100.8766", "894.89", "$54.156", "$54.484", "$545.155", "$57.159", "$96.154", "814.85", "894.11", "824.22", "44.97" ]
[ "$1a", "$#100.00", "1,00.00", "12/123/4322", "51:534", "43.v234", "/5/5/5", "/5/5/20022", "qwerty@123.123", "1-1-2", "(0xx12) 62509", "12/132/90" ]
709
^[\w0-9äÄöÖüÜß\-_]+\.[a-zA-Z0-9]{2,6}$
This RegEx can be used to varify (esp. when receiving data from forms) filenames. No Path is allowed. German Special Characters are allowed.
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: - "&quatsch" - "qua%tsch.txt"
[ "gut.txt", "afdsa.dfa", "t3e.fsd", "fd.ta", "fsg.fad", "wtre.asda", "gs.fsg", "ewfs.afd", "asdf.jpg", "adsf.png", "dfcv.jpg", "qrew.jpg", "ot.png" ]
[ "&quatsch", "qua%tsch.txt", "auch_quatsch.test.txt", "txtpng", "pgfdas", "bfdahih.sdfhu.hufd", "/5/5/5", "98iojk", "u09nKLJG FSL", "adfa2", "(0xx12) 62509", "12/132/90" ]
711
^\.{1}
simply checks to see if the first charactor is a . (dot)
simply checks to see if the first charactor is a . (dot) Match examples: - ".net" - ".blah" - ".anything" Non-match examples: - "net" - "net.stuff"
[ ".net", ".blah", ".anything", ".gvy", ".vyuhbj", ".g7yu", ".8g7uihbj", ".cytgv", ".yfgu", ".yftugh", ".tyyf7gy8", ".yg", ".ctfytgv" ]
[ "net", "net.stuff", "netstuff.", "12/123/4322", "2346-2345-2435", "43.v234", "/5/5/5", "98iojk", "432/524/2435", "adfa2", "dfg", "0j0jweBBBB" ]
727
^\d?\d'(\d|1[01])?.?(\d|1[01])"$
This RE matches the height in feet and inches with decimals and without decimals in it
This RE matches the height in feet and inches with decimals and without decimals in it Match examples: - "5'5.5"" - "2'3"" - "9'10.4"" Non-match examples: - "5 feet 5.5 inches" - "E:\DyAGT\SD01A_specV2.jpg"
[ "5'5.5"", "2'3"", "9'10.4"", "70'11_10"", "57'2"", "4'108"", "68'49"", "07'93"", "86'11"", "94'110"", "3'10"", "6'0"", "6'112"" ]
[ "5 feet 5.5 inches", "E:\\DyAGT\\SD01A_specV2.jpg", "34f2vf42e", "12/123/4322", "2346-2345-2435", "43.v234", "/5/5/5", "26+2'2'565'1", "65'51'684", "8944'84'48'", "4984'646'86'486", "164'879'54" ]
729
^[A-Za-z]{4}[ |\-]{0,1}[0-9]{6}[ |\-]{0,1}[0-9A-Za-z]{3}$
Regular expression that matches Mexican RFC's (Registro Federal de Contribuyentes).
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"
[ "LOZG7802117B9", "LOZG-780211-7B9", "LOZG780211-7B9", "pdbb 744807Rcb", "gKFM-572682R8b", "fKqS423419-Eoj", "RBLx561138|5tL", "wwqh767304 j2B", "eblp686659-8h4", "MCkL-404578 g4a", "TcrQ 102152-ewY", "igis991168-p5x", "ceOZ331953sNQ" ]
[ "LO-ZG-78-02-11-7B9", "52/2/54/245", "2534/52435234/2453", "12/123/4322", "2346-2345-2435", "43.v234", "/5/5/5", "/5/5/20022", "432/524/2435", "1-1-2", "(0xx12) 62509", "12/132/90" ]
730
^([0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4}$
IPv6 text representation of addresses without compression from RFC 1884. This regular expression doesn't allow IPv6 compression ("::") or mixed IPv4 addresses.
IPv6 text representation of addresses without compression from RFC 1884. This regular expression doesn't allow IPv6 compression ("::") 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"
[ "FEDC:BA98:7654:3210:FEDC:BA98:7654:3210", "1080:0:0:0:8:800:200C:417A", "0:0:0:0:0:0:0:1", "FC3:5cfB:1b2:55:2:EeE:eD:88", "de9:6b:06:FaA:fcb:b:EB:Bf8a", "EC:8De6:36:B6dE:b:A8:cbf:c", "C:2:CE:2:DB:2bf:2B:C", "C5A:1B8:1f:9:d23:dBDE:C:F", "c9:Af7:3:E1:88bB:0b:55:FA5b", "aee:e7:Bb:aC11:57C4:edd9:fc8:f", "ede0:7C7F:75:67:a72:CcD1:ba:B1", "7Bdd:1:35:7:D25F:208:f:eD36", "A4b:d3:3:8EdD:858:4D:E:6" ]
[ "128.0.0.1", "FEDC:BA98:7654:3210:FEDC:BA98:7654:3210:AA31", "::1", "12/123/4322", "sfalijad234", "there is a boy", "@#dfkjnav", "98iojk", "qwerty@123.123", "(0xx12) 7256 2345154", "abc111def", "99999@gmail" ]
731
^[0-9]*$
Matches only numbers, in any length. No characters or punctuation will be matched.
Matches only numbers, in any length. No characters or punctuation will be matched. Match examples: - "2" - "99" - "15800" Non-match examples: - "1,2" - "f9"
[ "2", "99", "15800", "48", "156", "6864548", "9489", "46848", "646", "84684", "86468", "4651", "48971564" ]
[ "1,2", "f9", "a9j", "12/123/4322", "sfalijad234", "43.v234", "@#dfkjnav", "/5/5/20022", "qwerty@123.123", "1-1-2", "(0xx12) 62509", "12/132/90" ]
735
^\d{5}(-\d{4})?$
Zip+4 Zipcode RegEx. You may ommit the +4 digits but you must also then ommit the hyphen/dash as well. In 1983, the Postal Service™ began using an expanded ZIP Code™ number called called the "ZIP+4®" Code. The nine digits of a ZIP+4 code (e.g., 12345-6789) is broken down as follows: [123]Sectional Center or Large City. [45]Post Office™ facility or Delivery Area. [-]Required "dash" or "hyphen". [67]Sector or Several Blocks. [89]Segment or One Side of a Street. Also just FYI, ZIP codes in the northeast US frequently start with '0' or '00'. [00988-Carolina, PR] [03110-Bedford, NH]. Thanks, Ryan v-
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"
[ "98121", "00988", "12345-6789", "97974", "81896-6579", "70912", "60306-8907", "86814-6754", "57939-2962", "10379", "24243-5665", "71500-7460", "83951-9333" ]
[ "98121-", "12345-678", "1234", "12/123/4322", "2346-2345-2435", "43.v234", "/5/5/5", "/5/5/20022", "432/524/2435", "1-1-2", "abc111def", "12/132/90" ]
738
^[1-9][0-9]{0,2}$
All positive non-zero integers between 1 and 999. You can adjust the upper range of this expression by changing the second number (ie 2) in the {0,2} part of the expression.
All positive non-zero integers between 1 and 999. Match examples: - "1" - "561" - "999" Non-match examples: - "-1" - "0"
[ "1", "561", "999", "189", "846", "875", "965", "485", "325", "612", "632", "666", "888" ]
[ "-1", "0", "1000", "925148", "489198498", "489489", "8425", "8452", "-48196", "1895.156", "1596.15", "54.321" ]
739
(((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])))
Usefull for SQL update and insert sentence..
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"
[ "01.01.2004", "30.12.2005", "24.02.1980", "30.08.2009", "29.02.7604", "29.02.4428", "29.02.9844", "16.02.2905", "20.10.2000", "05.10.2063", "02.10.2939", "07.11.2905", "03.02.1924" ]
[ "01/01/2004", "1.1.2004", "01-01-2004", "12/123/4322", "2346-2345-2435", "43.v234", "/5/5/5", "/5/5/20022", "432/524/2435", "1-1-2", "(0xx12) 62509", "12/132/90" ]
742
^[A-Za-z]{3,4}[ |\-]{0,1}[0-9]{6}[ |\-]{0,1}[0-9A-Za-z]{3}$
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.
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"
[ "LOZG7502123T7", "LOZG-750212-3T7", "LOZ 750212 3T7", "XHum233851|Jmy", "hgXM|314476|flP", "ZRDh 460315 1c3", "nRyL375538seX", "Yqa-542785rzd", "btPn8184368q0", "VMc-207955Kbs", "FQa354770|FzW", "cLo-216233ykI", "DHF411355I5m" ]
[ "LOZG750212", "f34fvfv", "34f2vf42e", "12/123/4322", "2346-2345-2435", "43.v234", "@#dfkjnav", "/5/5/20022", "u09nKLJG FSL", "adfa2", "(0xx12) 62509", "++63453.345" ]
743
^([-]?[0-9])$|^([-]?[1][0-2])$
I made this to validate offsets to GMT
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"
[ "1", "-10", "10", "2", "3", "4", "5", "8", "-11", "-8", "-5", "-4", "-9" ]
[ "13", "-25", "111", "4815", "4591", "54", "48", "64", "-489", "-4854", "67tgyu", "t6gy" ]
747
^([01][012]|0[1-9])/([0-2][0-9]|[3][0-1])/([0-9][0-9][0-9][0-9])$
Regular expression that only allows expression in the format: MM/DD/YYYY
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"
[ "01/01/2004", "01/18/1159", "05/31/2631", "03/30/3776", "10/30/5158", "00/31/9275", "01/30/2209", "01/11/2791", "02/31/7476", "04/30/5692", "10/10/3307", "02/18/3193", "02/26/4675" ]
[ "1/1/04", "01/01/04", "03/32/2004", "12/123/4322", "2346-2345-2435", "43.v234", "/5/5/5", "/5/5/20022", "432/524/2435", "1-1-2", "(0xx12) 62509", "12/132/90" ]
749
\/\*((?!\*\/).)*\*\/
Strip C style block comments
Strip C style block comments Match examples: - "/* comments */" - "/*\n*\n*/" - "/***********/" Non-match examples: - "// comments" - "///f34fvfv"
[ "/* comments */", "/*\\n*\\n*/", "/***********/", "/* adsfa */", "/* f2wef23 */", "/* fads32ff2 */", "/* f23ewds */", "/* fdsdfad */", "/* fadsf2ewds */", "/* afsd2 */", "/* fadsfd2 */", "/* jhyjg */", "/* jgyy56 */" ]
[ "// comments", "///f34fvfv", "////34f2vf*42e", "///12/123*/4322", "*//2346-2345-2435", "*//43.v234", "@#dfkjn*av", "/5/5/2*0022", "//432/524/2*435", "//1*-1-2", "(0xx12) 6250*9", "//12/132/*90" ]
751
^(((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))))$
I did not found a Regex for german date, so I created my own. This RE validate dates in the dd.MM.yyyy format with leap years 100% integrated valid years from 1600 to 9999. As usual, many tests have been made. I think this one should be fine.
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"
[ "1.1.2004", "01.01.2004", "29.2.2004", "29.2.1600", "30.12.6216", "20.06.1676", "14.03.6471", "16.02.1943", "20.06.2797", "01.3.1884", "2.08.1886", "29.02.3984", "30.12.3337" ]
[ "1/1/2004", "1-1-2004", "2534/52435234/2453", "12/123/4322", "2346-2345-2435", "$23.454", "/5/5/5", "/5/5/20022", "432/524/2435", "1-1-2", "(0xx12) 62509", "12/132/90" ]
754
((\d|([a-f]|[A-F])){2}:){5}(\d|([a-f]|[A-F])){2}
Deisgned to verify a MAC address with hex values seperated by a colon.
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"
[ "00:00:39:F9:3C:59", "00:90:83:6A:B3:B7", "00:00:39:59:30:5C", "67:8e:69:8b:eA:eE", "5e:0F:de:2A:da:Fc", "47:8B:36:96:23:d1", "5d:b0:b9:F1:Ca:DB", "79:C6:A5:Dc:d7:fe", "9D:f0:d4:D3:43:c9", "55:eA:A7:5D:3F:0B", "aD:8B:7d:d2:76:04", "de:1A:f9:9c:D8:93", "A5:4c:81:b8:A0:73" ]
[ "00:0H:39:59:30:5C", "00:39:59:30:5C", "00:39:59:30:5C:BZ", "12/123/4322", "2346-2345-2435", "43.v234", "AAAAAAA", "12f3.21f3.213f", "u09nKLJG FSL", "341.431v4f3.fv1", "(0xx12) 62509", "++63453.345" ]
755
^\(0[1-9]{1}\)[0-9]{8}$
This is used to validate an Australian telephone number with no other characters than the () being used. Validates area code being between 01 - 09.
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"
[ "(02)12341234", "(03)12341234", "(05)12341234", "(01)86552606", "(07)90772257", "(07)17836526", "(01)92619887", "(02)62624649", "(09)68578246", "(05)94856935", "(04)66145018", "(08)53293252", "(07)35338722" ]
[ "00 1234 1234", "00-1234-1234", "(00)12341234", "12/123/4322", "2346-2345-2435", "43.v234", "43-5432", "/5/5/20022", "432/524/2435", "341.431v4f3.fv1", "(0xx12) 62509", "12/132/90" ]
766
^((\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})?$
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. Allows 1.0, 1.00, 1, 1., .9, .90, 0.90.
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"
[ ".99", "1.", "0.99", "0.98", "0.65", "0.45", "0.82", "0.97", "0.64", "0.31", "0.21", "0.53", "0.65" ]
[ "10", "0100", "1.01", "-123", "156", "4865", "85.489562", "4895", "383512.", "0.51234", "5613.12", "1523" ]
772
^[a-zA-Z][a-zA-Z0-9_]+$
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.
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"
[ "MyVariable", "intWhatever", "Blah_Blah", "tfygh", "tfygu7yug", "tfyg67tygt", "erdt67t", "io98uy", "er4ert", "tyh_56ty", "tfy76gty", "we3e", "q2w3e4r5t6y" ]
[ "1stVariable", "654", "_asdasd_234", "45edrtfc5rdt", "90uihyy", "_)I(U*IH", "_)I(HUBJ", "_)(UIH", "^&TGYVH_^FTY", "#W$EDR", "54RFTGVNKJML", "&GYH" ]
775
((([7-9])(\d{3})([-])(\d{4}))|(([7-9])(\d{7})))
Expressão para a Validação de Telefones Celulares sem o DDD valida celulares com inicio igual a 7,8 e 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"
[ "9999-9595", "88888787", "7777-6589", "7189-9372", "81166314", "74505791", "9866-2913", "8156-1727", "7556-6919", "72658873", "97176270", "98971523", "85785684" ]
[ "44445555", "2222-9658", "22223658", "12/123/4322", "2346-2345-2435", "$23.454", "/5/5/5", "/5/5/20022", "432/524/2435", "1-1-2", "(0xx12) 62509", "12/132/90" ]
778
^([0-9a-fA-F])*$
Expression validating a hex string of any length.
Expression validating a hex string of any length. Match examples: - "1E3" - "82E5AAA4" - "01ff" Non-match examples: - "1g3" - "4Z"
[ "1E3", "82E5AAA4", "01ff", "8456", "89456", "89456A", "56489", "65AF", "6513846F", "5613BC", "6456F8465", "8465A465", "8465BCD" ]
[ "1g3", "4Z", "01x", "y78u", "gyu78gyu", "ftye1wqd", "67fty", "7d6ty4sdr", "s4er5dt7gyu9hivyu", "ft7y", "67ycu", "67cytu" ]
782
(?=^.{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]))^.*
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.
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"
[ "Passw0rd", "assW@rd", "1B2a345@#$%", "^TVYGUt7yu(*", "GHUFDhu76^&", "67ftyv^%FTY", "56rfty&^GYU", "90ijioU(*IJO", "S#EWfsdff23f32", "3W$ES23d", "E$R%$Rtyfvf67", ")(IJO0ijo", "*&GUY8gui87g" ]
[ "123123123", "Password", "asdf&", "dfiush", "IJBUIU*&*(", "F^&YGUF^%T&F^", "&^FGYU", "%F^RT*(", "8y9H", "F&^", "TV&", "vYT&" ]
783
^[9]9\d{10}|^[5]\d{10}
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.
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"
[ "991234567890", "51234567890", "57960452339", "55830345500", "998834347341", "50284016262", "991942628729", "992933733018", "998061531148", "56537583637", "59768489509", "998085897972", "56839621590" ]
[ "99123456789", "91234567890", "34f2vf42e", "12/123/4322", "2346-2345-2435", "43.v234", "AAAAAAA", "/5/5/20022", "432/524/2435", "adfa2", "(0xx12) 62509", "12/132/90" ]
787
^([a-zA-z\s]{4,32})$
This is the simplest RegEx for validating someone's name. The name can contain only alphabets(in either case) & should be of minimum length 4 & maximum length 32. Only white spaces are allowed apart from alphabets.
This is the simplest RegEx for validating someone's name. The name can contain only alphabets(in either case) & should be of minimum length 4 & maximum length 32. Only white spaces are allowed apart from alphabets. Match examples: - "some body" - "hey there" - "hello" Non-match examples: - "hi" - "hey 27"
[ "some body", "hey there", "hello", "fsad fdsi", "uihf fsui", "hiufss", "uihbfsud", "hui buib", "vuiv biu", "biu bhivu", "buiv shdjfu", "bufisd uifbds", "buif sbdfiu" ]
[ "hi", "hey 27", "hell?", "78gyuhui", "sfalijad234", "43.v234", "@#dfkjnav", "98iojk", "qwerty@123.123", "adfa2", "abc111def", "aa" ]
797
^(^(([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})$$
Matches all IPv6 text representations as defined within RFC 2373. Fairly verbose
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"
[ "::0:0:0:FFFF:129.144.52.38", "FEDC:BA98::3210:FEDC:BA98:7654:3210", "::13.1.68.3", "D164::D:5F:E663:12.254.254.227", "898:2:B4D:EB:114:9:0CE6:C04", "A052:A4:B877::0192:5:255.224.081.254", "::A90:9B:82:241.248.202.200", "::251.212.205.02", "::252.220.0.129", "::212.208..5", "::6FEE:B8F:6:2F", "::26:226.208.242.253", "::252.223.225.255" ]
[ "FEDC:BA98:7654:3210:FEDC:BA98:7654:3210:1234", "3210:FEDC:BA98:7654:3210:1234", ":FEDC:BA98:7654:3210:", "D164::D:5F:E663:12.254.254.227fsda", "fsdaf898:2:B4D:EB:114:9:0CE6:C04", "afdsA052:A4:B877::0192:5:255.224.081.254", "f2ed::A90:9B:82:241.248.202.200", "f3we::251.212.205.02", "fads::6FEE:B8F:6:2F", "341.431v4f3.fv1", "(0xx12) 62509", "++63453.345" ]
799
^([0-9]{3,4})$
Allows you to check the length of a number (in this case either 3 or 4 digits). I found it useful when validating Credit Card Identification Codes (CVV2/CVC2/CID) which are either 3 or 4 numerical digits.
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"
[ "123", "1234", "456", "4561", "678", "753", "789", "156", "213", "546", "789", "1564", "4856" ]
[ "12", "12345", "15", "97", "4", "6", "8", "89456123", "489561", "4856f23", "fe23", "5r6f" ]
801
^([a-zA-z\s]{2,})$
This pattern matches is for validating Names, Cities, States, Countries etc that require only alphabet inputs with white spaces. It requires atleast 2 characters & there's no limit on maximum number of characters.
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 & there's no limit on maximum number of characters. Match examples: - "Amit Gupta" - "Some Body" - "hello world" Non-match examples: - "A" - "Someplace23"
[ "Amit Gupta", "Some Body", "hello world", "test test", "ABC DEF", "jfiosd fsjdi", "jfiods fnsui", "iuyw urhwe", "uihd huifhs", "ihuf uhfd", "jiofs hyq", "poip fsd", "ruwe fsda" ]
[ "A", "Someplace23", "New-Jersey", "fewd23", "f23edg4rgggg32", "g5r42ef", "u9i9", "t76", "0u9", "g78hg8D%R", "5dRT", "%$DRT" ]
803
^\+?972(\-)?0?[23489]{1}(\-)?[^0\D]{1}\d{6}$
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)
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"
[ "+972-4-8253055", "972-4-8615466", "972-04-8564521", "+972-86842905", "+972-3-8441944", "972-046893540", "972-04-3970699", "972-04-3970699", "97242897572", "972-037549881", "972-09-6346942", "+97242897402", "972-022722133" ]
[ "04-5487665", "05-455665545", "456884624", "12/123/4322", "2346-2345-2435", "$23.454", "43-5432", "12f3.21f3.213f", "432/524/2435", "341.431v4f3.fv1", "(0xx12) 62509", "0j0jweBBBB" ]
804
^((0?[1-9]|1[012])(:[0-5]\d){1,2}(\ [AaPp][Mm]))$
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.
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"
[ "1:45 am", "12:01 aM", "01:23 pm", "11:59 pm", "04:28 pM", "08:00 Am", "04:32 pm", "03:06 Am", "11:28:59 Pm", "11:51 Pm", "8:20 am", "06:53:59 Am", "1:13 aM" ]
[ "13:34 am", "1:60 am", "13:45", "12/123/4322 PM", "51:534", "43.v2344 PM", "89:569", "48:97 PM", "65:23 pm", "1-1-2 am", "(0xx12) 62509", "32542 am" ]
805
^\d{5}((-|\s)?\d{4})?$
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.
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"
[ "92078-4705", "920784705", "92078 4705", "22393", "54968", "85050", "99350-8649", "79787-1343", "87163-0442", "88206-1513", "31360-8551", "363700404", "22774", "22393", "54968", "85050", "99350-8649", "79787-1343", "87163-0442", "88206-1513", "31360-8551", "363700404", "22774" ]
[ "9027x", "902", "92078.4705", "12/123/4322", "51:534", "$23.454", "/5/5/5", "/5/5/20022", "324df", "1-1-2", "(0xx12) 62509", "12/132/90", "12/123/4322", "51:534", "$23.454", "/5/5/5", "/5/5/20022", "324df", "1-1-2", "(0xx12) 62509", "12/132/90" ]
814
^\d{5}((\-|\s)?\d{4})?$
Single field zip code validator useful for web forms, where user may enter 5 digit or 9 digit zip code, and may use hyphen, space, or no space between the first 5 digits and last 4 digits.
Single field zip code validator useful for web forms, where user may enter 5 digit or 9 digit zip code, and may use hyphen, space, or no space between the first 5 digits and last 4 digits. Match examples: - "92078" - "92078-4705" - "92078 4705" Non-match examples: - "920781" - "920a87"
[ "92078", "92078-4705", "92078 4705", "264455497", "131416218", "99746", "054229695", "664133458", "09864", "899195591", "56954", "58489", "89987" ]
[ "920781", "920a87", "920", "1965189", "849561", "845168", "489698", "4821", "9516-9516", "1-1-2", "(0xx12) 62509", "12/132/90" ]
815
[1-2][0|9][0-9]{2}[0-1][0-9][0-3][0-9][-][0-9]{4}
Swedish person number. Don't work on persons older then 100 years, but they are so few that it shouldn't be a problem. Easy to fix, but I choose not to accept oldies...
Swedish person number. Match examples: - "19740609-7845" - "19811116-7845" - "20010913-7598" Non-match examples: - "21003612-9999" - "18790505-4545"
[ "19740609-7845", "19811116-7845", "20010913-7598", "20560634-8465", "10291017-1578", "19631222-3119", "29561336-3749", "10081438-9776", "10131537-6611", "20831709-9312", "20031727-7466", "20501922-6283", "20081625-4758" ]
[ "21003612-9999", "18790505-4545", "19740641-5559", "12/123/4322", "2346-2345-2435", "$23.454", "4515-516", "49156-984516", "489561-98456", "-4516-561", "98465-8456", "8945623-984561" ]
817
^([0]?[1-9]|[1][0-2])[./-]([0]?[1-9]|[1|2][0-9]|[3][0|1])[./-]([0-9]{4}|[0-9]{2})$
Validate american date formats: mm/dd/yyyy or m/d/yy or m.d.yyyy with separators: . - / Valid dates only! m (1-12)/ d (1-31)/ y (0..) (rizzipereira.com.br) For Brazilian date format: http://www.regexlib.com/REDetails.aspx?regexp_id=250
Validate American date formats: mm/dd/yyyy or m/d/yy or m.d.yyyy with separators: . - / Valid dates only! m (1-12)/ d (1-31)/ y (0..) Match examples: - "10.03.1979" - "12/30/2004" - "01/01/2004" Non-match examples: - "09--02--2004" - "15-15-2004"
[ "10.03.1979", "12/30/2004", "01/01/2004", "07/6.84", "10/03-3505", "12-28/37", "09-8-07", "9.30-9000", "6/02-7535", "12.09/74", "10-2-6908", "11.2.32", "10-31-77" ]
[ "09--02--2004", "15-15-2004", "13/12/2004", "12/123/4322", "2346-2345-2435", "$23.454", "/5/5/5", "/5/5/20022", "432/524/2435", "1-1-2", "(0xx12) 62509", "12/132/90" ]
822
^[0-9]{4}-(((0[13578]|(10|12))-(0[1-9]|[1-2][0-9]|3[0-1]))|(02-(0[1-9]|[1-2][0-9]))|((0[469]|11)-(0[1-9]|[1-2][0-9]|30)))$
Matches the date format "YYYY-mm-dd" and also validates month and number of days in a month. All leap year dates "YYYY-02-29" passes trough. Could easily be changed to another format.
Matches the date format "YYYY-mm-dd" and also validates month and number of days in a month. All leap year dates "YYYY-02-29" passes trough. Match examples: - "2004-04-30" - "2004-02-29" - "4214-06-30" Non-match examples: - "2004-04-31" - "2004-02-30"
[ "2004-04-30", "2004-02-29", "4214-06-30", "2509-01-30", "0881-02-29", "7644-02-08", "6740-10-04", "0519-05-01", "5214-08-21", "9459-09-30", "3512-09-17", "5617-02-01", "5381-11-30" ]
[ "2004-04-31", "2004-02-30", "2534/52435234/2453", "12/123/4322", "2346-2345-2435", "$23.454", "/5/5/5", "/5/5/20022", "324df", "1-1-2", "(0xx12) 62509", "12/132/90" ]
823
^((?:2[0-5]{2}|1\d{2}|[1-9]\d|[1-9])\.(?:(?:2[0-5]{2}|1\d{2}|[1-9]\d|\d)\.){2}(?:2[0-5]{2}|1\d{2}|[1-9]\d|\d)):(\d|[1-9]\d|[1-9]\d{2,3}|[1-5]\d{4}|6[0-4]\d{3}|654\d{2}|655[0-2]\d|6553[0-5])$
IPv4 ip:port checker, I hope it will help you. $1 - IP, $2 - port. More to come, maybe :)
IPv4 ip:port checker, I hope it will help you. $1 - IP, $2 - port. Match examples: - "127.0.0.1:80" - "255.255.255.0:21" - "1.0.0.0:1" Non-match examples: - "0.0.0.0:1" - "256.1.1.1:20"
[ "127.0.0.1:80", "255.255.255.0:21", "1.0.0.0:1", "46.243.1.167:751", "160.154.243.9:4", "4.0.215.102:65513", "253.224.59.103:55", "143.127.244.222:62820", "253.110.9.6:62523", "65.220.200.196:55954", "31.172.165.185:7", "212.84.221.220:55", "67.233.1.202:736" ]
[ "0.0.0.0:1", "256.1.1.1:20", "127.0.0.1:65536", "12/123/4322", "123.456.789", "2/3/5235", "43-5432", "12f3.21f3.213f", "qwerty@123.123", "341.431v4f3.fv1", "abc111def", "12/132/90" ]
827
^(9,)*([1-9]\d{2}-?)*[1-9]\d{2}-?\d{4}$
Validates US or Canadian phone numbers with the use of "-" or numbers stuck together. No parantheses allowed as well as spaces. Area code is optional. The "9," is optional as well, which on some phone systems is needed to dial out.
Validates US or Canadian phone numbers with the use of "-" or numbers stuck together. No parantheses allowed as well as spaces. Area code is optional. The "9," is optional as well, which on some phone systems is needed to dial out. Match examples: - "9,5143393044" - "9,514-339-3044" - "339-3044" Non-match examples: - "9,339 3044" - "514 440 2009"
[ "9,5143393044", "9,514-339-3044", "339-3044", "489-8745", "485-8796", "489-8794", "823-4896", "879-8154", "846-8795", "812-9876", "213-4589", "321-6547", "987-6543" ]
[ "9,339 3044", "514 440 2009", "(514) 440-2009", "12/123/4322", "2346-2345-2435", "$23.454", "/5/5/5", "/5/5/20022", "432/524/2435", "1-1-2", "(0xx12) 62509", "12/132/90" ]
831
^\-?\(?([0-9]{0,3}(\,?[0-9]{3})*(\.?[0-9]*))\)?$
Match a positive or negative decimal value with any precision and scale. Allows for left-padded zeroes, commas as group separator, negative sign (-) or parenthesis to indicate negative number.
Match a positive or negative decimal value with any precision and scale. Allows for left-padded zeroes, commas as group separator, negative sign (-) or parenthesis to indicate negative number. Match examples: - "0.123" - "(1234.123)" - "-01,200" Non-match examples: - "2.3.123" - "1,23.45"
[ "0.123", "(1234.123)", "-01,200", "516", "548", "864", "456", "846.465", "4856.65", "516.156", "-489.51", "-789.1254", "-489.21" ]
[ "2.3.123", "1,23.45", "90438502+9503", "12/123/4322", "51:534", "$23.454", "/5/5/5", "12f3.21f3.213f", "324df", "1-1-2", "(0xx12) 62509", "++63453.345" ]
833
^([0-9]{5})([\-]{1}[0-9]{4})?$
Validates against a U.S. postal code in either a 5 digit format or a 5 dash 4 format.
Validates against a U.S. postal code in either a 5 digit format or a 5 dash 4 format. Match examples: - "18017" - "18017-1401" - "21389-6392" Non-match examples: - "1801A" - "18017-"
[ "18017", "18017-1401", "21389-6392", "05777", "56923", "89326", "68059", "88774-1384", "32425-6779", "79483-3404", "89006-9511", "72142-2804", "16457-1675" ]
[ "1801A", "18017-", "18017-152A", "12/123/4322", "2346-2345-2435", "$23.454", "489", "4985-489945", "56-4895", "495-94561", "-456-456", "9456-45961" ]
836
^([4]{1})([0-9]{12,15})$
Validate against a visa card number. All visa cards start with a 4 and are followed by 12 to 15 more numbers.
Validate against a visa card number. All visa cards start with a 4 and are followed by 12 to 15 more numbers. Match examples: - "4125632152365" - "418563256985214" - "4125632569856321" Non-match examples: - "3125652365214" - "41256321256"
[ "4125632152365", "418563256985214", "4125632569856321", "49806754364673", "41491375454867", "485356860942812", "4770447906705036", "448396436324023", "45070682445907", "44783606756808", "40836531725759", "4792181214201", "4877924087087587" ]
[ "3125652365214", "41256321256", "42563985632156322", "314455704591712", "328340313647627", "3869294726381", "8473042249290", "8672009622132", "871986373693914", "893169175001042", "48156", "0j0jweBBBB" ]
837
^([51|52|53|54|55]{2})([0-9]{14})$
Validate against any mastercard number. All MC's start with a number between 51 and 55 and are followed by 14 other numbers.
Validate against any mastercard number. All MC's start with a number between 51 and 55 and are followed by 14 other numbers. Match examples: - "5125632154125412" - "5225632154125412" - "5525632154125412" Non-match examples: - "5625632154125412" - "4825632154125412"
[ "5125632154125412", "5225632154125412", "5525632154125412", "5112345678901234", "5212345678901234", "5312345678901234", "5412345678901234", "5512345678901234", "5200000000000000", "5500000000000000", "5234567890123456", "5443210987654321", "5522222222222222" ]
[ "5625632154125412", "4825632154125412", "6011632154125412", "5012345678901234", "5612345678901234", "52000000000000", "530000000000000", "12f3.21f3.213f", "qwerty@123.123", "(0xx12) 7256 2345154", "(0xx12) 62509", "99999@gmail" ]
838
^(([A-Z]{1,2}[0-9]{1,2})|([A-Z]{1,2}[0-9][A-Z]))\s?([0-9][A-Z]{2})$
Matches UK postcodes of the below formats. The space is optional. AN NAA AAN NAA ANN NAA ANA NAA AANA NAA AANN NAA
Matches UK postcodes of the below formats. The space is optional. AN NAA AAN NAA ANN NAA ANA NAA AANA NAA AANN NAA Match examples: - "A11AA" - "AA1A 1AA" - "AA11 1AA" Non-match examples: - "AAA 1AA" - "AA11A 1AA"
[ "A11AA", "AA1A 1AA", "AA11 1AA", "EC1A 1BB", "W1A 0AX", "M1 1AE", "B33 8TH", "CR2 6XH", "DN55 1PT", "SW1A 1AA", "GU16 7HF", "L2 2HQ", "G2 2BL" ]
[ "AAA 1AA", "AA11A 1AA", "AAA1AA", "Mastercard", "sfalijad234", "there is a boy", "@#dfkjnav", "12f3.21f3.213f", "qwerty@123.123", "adfa2", "abc111def", "0j0jweBBBB" ]
844
(\S+)\x20{2,}(?=\S+)
Trim Inside. This pattern can be used with a replace value of "$1 " to remove multiple consecutive spaces between characters and replace with a single space. Trailing and leading spaces are NOT altered.
Trim inside a string by replacing multiple consecutive spaces between characters with a single space, without altering leading or trailing spaces. Match examples: - "Too Many spaces." - "hdfu fhhu" - "bufy. sd fuhi" Non-match examples: - "No extra spaces" - "No Extra spaces Inside"
[ "Too Many spaces.", "hdfu fhhu", "bufy. sd fuhi", "usdfi. siudhfi", "iowr89. wefbui", "fdbuis. sfbug78", "bfys f. s. sdbufb", "bshdbf. fbsdib", "bhfye87g. buiwe", "bfyeg. hufew", "jif. iubfwe", "uiirwe u ehw. wiuhr", "huiher. uiwhruiwr" ]
[ "No extra spaces", "No Extra spaces Inside", "34f2vf42e", "Mastercard", "2346-2345-2435", "$23.454", "@#dfkjnav", "98iojk", "qwerty@123.123", "adfa2", "34.31", "99999@gmail" ]
848
^[0-9]{4}((0[1-9])|(1[0-2]))$
Match a string in CCYYMM/YYYYMM format.
Match a string in CCYYMM/YYYYMM format. Match examples: - "200401" - "000001" - "200412" Non-match examples: - "aaa" - "20040123"
[ "200401", "000001", "200412", "080210", "709612", "692003", "299711", "848203", "298311", "325410", "093311", "392105", "525304" ]
[ "aaa", "20040123", "200414", "12/123/4322", "2346-2345-2435", "$23.454", "AAAAAAA", "98iojk", "432/524/2435", "adfa2", "abc111def", "32542" ]
851
^-?[0-9]{0,2}(\.[0-9]{1,2})?$|^-?(100)(\.[0]{1,2})?$
Matches a negative or positive percentage between 0 and 100 (inclusive). Accepts up to 2 decimal places.
Matches a negative or positive percentage between 0 and 100 (inclusive). Accepts up to 2 decimal places. Match examples: - "12.34" - "100.00" - "-2.1" Non-match examples: - "101.1" - "10.123"
[ "12.34", "100.00", "-2.1", "48.65", "48.97", "98.54", "51.21", "87.5", "97.1", "54.9", "-79.1", "78.2", "98.2" ]
[ "101.1", "10.123", "100.10", "489.15", "489.514", "9.5498", "894.51", "7835.54", "68.54987", "564.216", "546.215", "215.5432" ]
859
\b(?:a(?:[nst]|re|nd)?|b[ey]|f(?:or|rom)|i[nst]?|o[fnr]|t(?:o|hat|he|his)|w(?:as|h(?:at|en|ere|ich|o)|i(?:th|ll)))\b
Removes "stop" or "delete" words that google removes from search strings. Ordinarily have no search significance. I used this to remove the words in my own web search application. Take out the ?: for grouping. I've tested this a bit, yet this is my 1st regex that I've ever written. It's working fine for me.
Removes "stop" or "delete" words that google removes from search strings. Ordinarily have no search significance. I used this to remove the words in my own web search application. Take out the ?: for grouping. Match examples: - "by" - "when" - "or" Non-match examples: - "bye" - "craptastic"
[ "by", "when", "or", "the", "a", "to", "i", "it", "is", "be", "on", "that", "from" ]
[ "bye", "craptastic", "nor", "fasdf", "apple", "tree", "pear", "banana", "notre", "dame", "abc111def", "12/132/90" ]
861
^([0-1])*$
Expression validating a Binary string of any length
Expression validating a Binary string of any length Match examples: - "10101000" - "01010000" - "100000001" Non-match examples: - "01000200" - "00021000"
[ "10101000", "01010000", "100000001", "10101", "010101010", "101001", "010101010101", "01101010011101", "1010101", "111111000", "1000000101010", "110101010111100001", "110101010011111" ]
[ "01000200", "00021000", "e10000000", "1201520201010", "10101010120102", "2010202020", "20020020", "20202020200", "1010100.0.0.0.01a", "1002012020", "2015205120", "020" ]
862
^([0-9a-fA-F]){8}$
Hex number/string validation method for the Electronic Serial Number(ESN) used in Cellular Phone products.
Hex number/string validation method for the Electronic Serial Number(ESN) used in Cellular Phone products. Match examples: - "8ECCA04F" - "82E5AAA4" - "82e5aaa4" Non-match examples: - "8ECCAOF" - "82E5AA4"
[ "8ECCA04F", "82E5AAA4", "82e5aaa4", "37Fa8059", "b0B3E6F0", "86bbBe5b", "1c53c215", "75E14a03", "b6baf5c6", "34dc37c1", "DE18328C", "88CeA3FC", "c1eb17cc" ]
[ "8ECCAOF", "82E5AA4", "82e5aaa45", "afdsfads", "e5drtfy8guy", "65fty78gyu", "6ftyf7uy", "7dftd6tgy", "d56t87guygy89ugyv", "guyg8y8gy", "7ft6ddtr65erd6tf7yg", "ft6r6ft" ]
865
(02\d\s?\d{4}\s?\d{4})|(01\d{2}\s?\d{3}\s?\d{4})|(01\d{3}\s?\d{5,6})|(01\d{4}\s?\d{4,5})
Validates UK domestic landline phone numbers. Valid formats are: 029 99999999 or 029 9999 9999; 0199 9999999 or 0199 999 9999; 01999 99999; 01999 999999; 019999 9999; 019999 99999. These formats are taken from the official guidelines from Ofcom, the organisation responsible for UK telecoms issues. Brackets are not valid and STD code must be entered.
Validates UK domestic landline phone numbers. Valid formats are: 029 99999999 or 029 9999 9999; 0199 9999999 or 0199 999 9999; 01999 99999; 01999 999999; 019999 9999; 019999 99999. These formats are taken from the official guidelines from Ofcom, the organization responsible for UK telecoms issues. Brackets are not valid and STD code must be entered. Match examples: - "020 1234 5678" - "0123 4567890" - "01234 456789" Non-match examples: - "02476 123456" - "0845 123456"
[ "020 1234 5678", "0123 4567890", "01234 456789", "0106860496", "02617842344", "0163\f2643832", "0165781 2081", "0139985762", "0106346 8156", "01451609003", "018601 22460", "01134852061", "01561729575" ]
[ "02476 123456", "0845 123456", "07712 345678", "r65tyg", "94856189", "8456", "8456654", "r65ftygv", "6t7yfuv", "341.431v4f3.fv1", "abc111def", "99999@gmail" ]
869
(077|078|079)\s?\d{2}\s?\d{6}
Validates UK mobile phone numbers. Valid formats are `077', `078' or `079' followed by another 8 digits, with an optional space after the dialling code and/or between the 4th and 5th characters of the remainder of the number. These formats are taken from the official guidelines from Ofcom, the organisation responsible for UK telecoms issues. Brackets are not valid and STD code must be entered.
Validates UK mobile phone numbers. Valid formats are `077', `078' or `079' followed by another 8 digits, with an optional space after the dialling code and/or between the 4th and 5th characters of the remainder of the number. Brackets are not valid and STD code must be entered. Match examples: - "07713 345678" - "078 12345678" - "079 12345678" Non-match examples: - "02344 123456" - "0121 292929"
[ "07713 345678", "078 12345678", "079 12345678", "078 09442466", "07790 495054", "07922223865", "07976338481", "07703621312", "078 28559370", "07953922231", "077 62474680", "07787720248", "07966
323376" ]
[ "02344 123456", "0121 292929", "012345 6789", "45162305230", "56123051", "512021548", "46512025", "94512015489", "4961525", "48152594612", "41621541245456", "461520" ]
870
^((0[1-9])|(1[0-2]))$
Matches month, requires that months 1-9 have a leading 0
Matches month, requires that months 1-9 have a leading 0 Match examples: - "01" - "02" - "12" Non-match examples: - "1" - "2"
[ "01", "02", "12", "03", "04", "05", "06", "07", "08", "09", "10", "11" ]
[ "1", "2", "13", "3", "4", "5", "6", "7", "8", "418", "456", "48" ]
876
^\s*-?(\d*\.)?([0-2])?[0-9]:([0-5])?[0-9]:([0-5])?[0-9](\.[0-9]{1,7})?\s*$
This should be the pattern described in the documentation for the .NET TimeSpan.Parse method - generally parses time spans. From the .NET docs: public static TimeSpan Parse(string s); The s parameter contains a specification of the form: [ws][-][d.]hh:mm:ss[.ff][ws] Items in square brackets ([ and ]) are optional, colons and periods (: and .) are literal characters, and other items are as follows. Item Description ws optional white space "-" optional minus sign indicating a negative time "d" optional days "hh" hours, ranging from 0 to 23 "mm" minutes, ranging from 0 to 59 "ss" seconds, ranging from 0 to 59 "ff" optional fractional seconds, from 1 to 7 decimal digits
This regex pattern matches time-like strings in the format: "HH:MM:SS.SSSSSSS" (hours, minutes, seconds, and optional fractional seconds). It allows for negative values, leading/trailing whitespace, and allows for optional single-digit hours, minutes, and seconds. Match examples: - "10:12:34" - "932323.9:00:32.3420" - "12:34:56" Non-match examples: - "10:20:80" - "f34fvfv"
[ "10:12:34", "932323.9:00:32.3420", "12:34:56", "1:2:3", "00:00:00", "-1:23:45.6789", "01:59:00.1234567", "23:59:59.9999999", "0:00:01", "01:02:03.000001", "0:00:00.1", "00:00:59", "23:59:59.999999" ]
[ "10:20:80", "f34fvfv", "2534/52435234/2453", "12/123/4322", "2346-2345-2435", "$23.454", "/5/5/5", "105516:516:654", ":465:456:465f", "1-1-2", "(0xx12) 62509", "12/132/90" ]
877
^([1-9]{0,1})([0-9]{1})(\.[0-9])?$
Matches numbers 0 through 99.9 Allows only one preceding zero and does not require the decimal point
Matches numbers in the format of a single digit, with an optional leading digit in the range 1-9 and an optional decimal part consisting of a period followed by one digit. Match examples: - "1" - "1.1" - "0.1" Non-match examples: - "01" - "01.1"
[ "1", "1.1", "0.1", "4.8", "6.5", "1.4", "8.4", "9.8", "3.2", "5.4", "6.7", "5.1", "6.4" ]
[ "01", "01.1", "0.10", "000151", "0051156", "0.215413", "56115", ".40215afd", "5612356", "adfa2", "dfg", "8h98009hu" ]
879
^(eth[0-9]$)|(^eth[0-9]:[1-9]$)
regex to validate unix device names (linux). useful for scripts using ifconfig or stuff
regex to validate unix device names (linux). useful for scripts using ifconfig or stuff Match examples: - "eth0" - "eth0:4" - "eth4:9" Non-match examples: - "eth0:" - "eth0:0"
[ "eth0", "eth0:4", "eth4:9", "eth0:4", "eth8:6", "eth2:4", "eth9:8", "eth0:4", "eth4:5", "eth0:8", "eth4:8", "eth3:4", "eth2:3" ]
[ "eth0:", "eth0:0", "eth0:1d", "eth2y8hfue", "eth:HUIF89dh", "eth:hiuf8", "eth:43298", "eth:89ur", "epflu3829", "epfl8293j", "epfl$EDR", "12/132/90" ]
880
^\.([rR]([aA][rR]|\d{2})|(\d{3})?)$
RAR file extensions. Works also with '*.part01.rar' given '.rar' to be the file extension. Does not support volumes exceed 101 for s## (r99, s00, s01, ...) serie.
RAR file extensions. Works also with '*.part01.rar' given '.rar' to be the file extension. Does not support volumes exceed 101 for s## (r99, s00, s01, ...) serie. Match examples: - ".RAr" - ".r01" - ".012" Non-match examples: - ".rxr" - ".a01"
[ ".RAr", ".r01", ".012", ".R32", ".r46", ".R05", ".RAR", ".rAR", ".R31", ".035", ".RAR", ".917", ".RAR" ]
[ ".rxr", ".a01", ".0112", "rarhu", "rary78hu", "huiey8uhr", "y8uhi6r7tf", "r56tf", "r65ft", "r65tf", "6fty8uhi", "uhi" ]
881
^(X(-|\.)?0?\d{7}(-|\.)?[A-Z]|[A-Z](-|\.)?\d{7}(-|\.)?[0-9A-Z]|\d{8}(-|\.)?[A-Z])$
Matches Spanish CIF, NIF and NIE formats. Recognises separation of letters with the hyphen or period. Format CIF: [1 letter][7 numbers][1 number or letter] Format NIF: [8 numbers][1 letter] Format NIE: X[possible 0][7 numbers][1 letter] Note that this expression does not check for the validity of the NIF/CIF/NIE... there are some control characters in there and I don't know how they work. Generally I always strip out any non-alphanumeric characters (hyphens, periods, etc.) and convert to upper case before checking validity and before saving to data storage. Please post improvements or errors if you find them!
Matches Spanish CIF, NIF and NIE formats. Recognises separation of letters with the hyphen or period. Format CIF: [1 letter][7 numbers][1 number or letter] Format NIF: [8 numbers][1 letter] Format NIE: X[possible 0][7 numbers][1 letter] Note that this expression does not check for the validity of the NIF/CIF/NIE. Match examples: - "X01343567-D" - "B-6116622G" - "43544122-R" Non-match examples: - "43.544.122-R" - "f34fvfv"
[ "X01343567-D", "B-6116622G", "43544122-R", "40321895-U", "58334674P", "24527791P", "06707604F", "19979739.G", "71917270.N", "46841644.V", "X2645813.P", "X6139722.A", "67187001G" ]
[ "43.544.122-R", "f34fvfv", "34f2vf42e", "Mastercard", "2346-2345-2435", "$23.454", "@#dfkjnav", "/5/5/20022", "432/524/2435", "adfa2", "abc111def", "++63453.345" ]
882
^((([0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}:[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){5}:([0-9A-Fa-f]{1,4}:)?[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){4}:([0-9A-Fa-f]{1,4}:){0,2}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){3}:([0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){2}:([0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(([0-9A-Fa-f]{1,4}:){0,5}:((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(::([0-9A-Fa-f]{1,4}:){0,5}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|([0-9A-Fa-f]{1,4}::([0-9A-Fa-f]{1,4}:){0,5}[0-9A-Fa-f]{1,4})|(::([0-9A-Fa-f]{1,4}:){0,6}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){1,7}:))$
Matches full and compressed IPv6 addresses as defined in RFC 2373 (http://www.faqs.org/rfcs/rfc2373.html). No useful captures. Various implementations require different terminators. (i.e. ^-$ or \b-\b)
Matches full and compressed IPv6 addresses as defined in RFC 2373. Match examples: - "FEDC:BA98:7654:3210:FEDC:BA98:7654:3210" - "1080::8:800:200C:417A" - "::FFFF:129.144.52.38" Non-match examples: - "FEDC::7654:3210::BA98:7654:3210" - "FEDC:BA98:7654:3210"
[ "FEDC:BA98:7654:3210:FEDC:BA98:7654:3210", "1080::8:800:200C:417A", "::FFFF:129.144.52.38", "9Bec::1E:644:64A", "D:A:46:06E:A6cC::A2", "::eb8:19c8:A0B:A3d3", "B8:ae:3::e:F587:Fdf", ":255.208.204.245", "EEc:69D:a:B7:5F:A4D::6bcD", "ACfC:3c:c8d:BABb:90d:3d:6.251.222.193", "::9E:250.153.252.9", "0fCB:3e:ae:1F:7:29C:172.61.190.202", "18Cb:C8::53:0a5b:Ed2:a295" ]
[ "FEDC::7654:3210::BA98:7654:3210", "FEDC:BA98:7654:3210", "::", "12/1::23/4322::", "23::46-2345-24::35", "$23.::454", "43::-54::32", "/5/5::/20022::", "qwerty@::123.123", "1-1-2::", "(0xx12) ::625::09", "12::/132/9::0" ]
885
^(\$|)([1-9]\d{0,2}(\,\d{3})*|([1-9]\d*))(\.\d{2})?$
Combine Michael Ash's US Dollar amount and Bri Gipson's eliminating zero input to create this RE to accept Optional leading dollar sign, optional well-formed comma separator dollar amount with no zero amount allowed. *** Correction: Remove the "+" otherwise it will incorrectly matches 4 leading digits like 1234,345,678.00 03-03-2005
Matches monetary values with optional dollar signs and supports thousands separators. It enforces that the value must have at least one digit before the decimal point and exactly two digits after the decimal point, if present. Match examples: - "$1,234,567.89" - "1234567.89" - "$9.99" Non-match examples: - "$1,2345,67.89" - "$1234,345,678.0"
[ "$1,234,567.89", "1234567.89", "$9.99", "$561", "100", "123", "45679856.12", "4856", "489", "$48", "$8464", "$84645", "$4865" ]
[ "$1,2345,67.89", "$1234,345,678.0", "0", "12/123/4322", "123.456.789", "43.v234", "$451123.451561", "$564.546313", "56123.156465%", "$6512332$#@", "9/9/9", "++63453.345" ]
890
^((Fred|Wilma)\s+Flintstone|(Barney|Betty)\s+Rubble)$
Match the full names of the four main characters of The Flintstones.
Match the full names of the four main characters of The Flintstones. Match examples: - "Fred Flintstone" - "Barney Rubble" - "Betty Rubble" Non-match examples: - "The Great Gazoo" - "Mr. Slate"
[ "Fred Flintstone", "Barney Rubble", "Betty Rubble", "Fred Flintstone" ]
[ "The Great Gazoo", "Mr. Slate", "Dino", "Mastercard", "sfalijad234", "Visa", "Pat", "Lionel Messi", "Neymar Jr.", "ABC", "fisjd", "fU*(DHIF" ]
891
(^\([0]\d{2}\))(\d{6,7}$)
Validator for New Zealand Mobile phone numbers. Will look for the first number being a 0 and must be a number or either 6 or 7 digits long after to initial (021) suffix
Validator for New Zealand Mobile phone numbers. Will look for the first number being a 0 and must be a number or either 6 or 7 digits long after to initial (021) suffix Match examples: - "(021)1234567" - "(021)123456" - "(000)000000" Non-match examples: - "(123)1234567" - "025123456"
[ "(021)1234567", "(021)123456", "(000)000000", "(037)724022", "(007)4356525", "(088)734140", "(041)370187", "(094)245329", "(012)915180", "(003)212963", "(092)654593", "(078)6872674", "(054)124109" ]
[ "(123)1234567", "025123456", "0252345678", "12/123/4322", "2346-2345-2435", "43.v234", "@#dfkjnav", "/5/5/20022", "qwerty@123.123", "341.431v4f3.fv1", "(0xx12) 62509", "99999@gmail" ]
894
^([1-9]|1[0-2]|0[1-9]){1}(:[0-5][0-9][aApP][mM]){1}$
Very simple expression to validate time on a 12 hour clock, this expression is valid for client-side script validations (RegularExpressionValidator - ASP.NET).
Very simple expression to validate time on a 12 hour clock, this expression is valid for client-side script validations. Match examples: - "08:00AM" - "10:00am" - "7:00pm" Non-match examples: - "13:00pm" - "12:65am"
[ "08:00AM", "10:00am", "7:00pm", "11:21AM", "03:04Pm", "04:47PM", "04:53am", "6:03PM", "1:30Pm", "08:16PM", "02:59pm", "01:12am", "11:59pm" ]
[ "13:00pm", "12:65am", "12ampm", "1230am", "13pm", "13morning", "17", "91ur3", "432/524/2435", "adfa2", "(0xx12) 62509", "12/132/90" ]
895
^[a-zA-Z0-9]+$
it will check for alphanumeric (Alpha Numeric) values.
matches strings that only consist of one or more alphanumeric characters (letters and/or digits). Match examples: - "adad1213" - "1231dfadfa" - "dfad123dfasdfs" Non-match examples: - "dfa@#12313" - "*(*sdfasdfadfd"
[ "adad1213", "1231dfadfa", "dfad123dfasdfs", "65f67f", "76c7", "c76", "f765d", "6f68", "f8", "67f78", "f87", "fg87", "f787fr7" ]
[ "dfa@#12313", "*(*sdfasdfadfd", "$fffsdg121ddd#$f1q", "$%RT", "F^TY", "(IH", ")OK", "(IJ", "8UH&^&", "yh&Y", "@#EF", "++63453.345" ]
898
^(((0[1-9]|[12]\d|3[01])\/(0[13578]|1[02])\/((19|[2-9]\d)\d{2}))|((0[1-9]|[12]\d|30)\/(0[13456789]|1[012])\/((19|[2-9]\d)\d{2}))|((0[1-9]|1\d|2[0-8])\/02\/((19|[2-9]\d)\d{2}))|(29\/02\/((1[6-9]|[2-9]\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))))$
dd/MM/yyyy with leap years 100% integrated Valid years : from 1900 to 9999. As usual, many tests have been made. This was requested by a user : http://www.regexlib.com/REDetails.aspx?regexp_id=409
dd/MM/yyyy with leap years 100% integrated Valid years : from 1900 to 9999. Match examples: - "29/02/2000" - "30/04/2003" - "01/01/2003" Non-match examples: - "29/02/2001" - "30-04-2003"
[ "29/02/2000", "30/04/2003", "01/01/2003", "19/02/1981", "14/02/1964", "29/02/3056", "20/10/8819", "22/10/6437", "19/10/3905", "15/10/1964", "18/02/1914", "15/08/2992", "27/02/1932" ]
[ "29/02/2001", "30-04-2003", "1/1/1899", "(12) 324 653210", "234/423/5243", "$23.454", "43-5432", "254627g.256", "245/524/12", "354/243/542", "9/9/9", "32542 //" ]
901