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
^(0|\+33)[1-9]([-. ]?[0-9]{2}){4}$
Match french phone number with or without french international dialling code
Match french phone number with or without french international dialling code Match examples: - "+33622313131" - "02 02 02 02 02" - "0303030303" Non-match examples: - "+34622313131" - "1702020202"
[ "+33622313131", "02 02 02 02 02", "0303030303", "+331.4690.34 47", "+331 496409.08", "07 1785-81-31", "07-31.06-0072", "+3325537-99-41", "03510025-43", "01-23 17.66.08", "+3364933 17-14", "05721136 91", "+3314131 28-24" ]
[ "+34622313131", "1702020202", "23", "12/12", "12-12", "12.12", "$56789", "-98765", "4567%", "32ewds", "4f3rec", "####" ]
3,228
^(\d?)*\.?(\d{1}|\d{2})?$
Expression to validate currency formatted numbers without the currency symbol. This is an updated version of my previous expression and now works in ASP.NET regular expression validators.
Expression to validate currency formatted numbers without the currency symbol. Match examples: - "153" - "33.48" - "786.1" Non-match examples: - "-123" - "8524.258"
[ "153", "33.48", "786.1", "1567863483.33", "82620488732013362401002347289597345549580362775", "2656254197019330262321471387006506127493056032004370440", "1311244136524109600515669070575811020331240032815399.", "443946045269136478024586026599.", "64428461059046924271793448.1", "5833212769801702132419173010140466290563", "8742104836584323.87", "32636373432149873597766966.", "5024936454117752195698822273485385331" ]
[ "-123", "8524.258", "eo45", "+87654", "$456789", "8765%", "8392iuyg", "###", "(765)", "32e", "num", "876tr5dRTYU" ]
3,234
^(([0][1-9]|[1|2][0-9]|[3][0|1])[./-]([0][1-9]|[1][0-2])[./-]([0-9]{4})|(([0][1-9]|[1|2][0-9]|[3][0|1])[./-]([0][1-9]|[1][0-2])[./-]([0-9]{4}))[ ]([0|1][0-2])[:](([0-5][0-9]))([:](([0-5][0-9])))?)$
this regular expression accepts date and optinal time with format (dd)[.-/](MM)[.-/](yyyy)[ ] (hh)[:](mm)[:](ss)
accepts date and optinal time with format (dd)[.-/](MM)[.-/](yyyy)[ ] (hh)[:](mm)[:](ss) Match examples: - "01-01-2014 10:50" - "01/01/2014 10:50:59" - "11-10-2012" Non-match examples: - "01-01-2014 10:60" - "32-01-2014 10:50"
[ "01-01-2014 10:50", "01/01/2014 10:50:59", "11-10-2012", "3|.10.3059", "10-07/4711 11:00:11", "|1.10.7248 |0:04", "21/11/9170 01:46:14", "23.05.7387 |0:34:34", "07-08/6724", "06/10/9781 01:41:45", "30-06-4116 02:47", "07-08/6088 00:55:36", "17/01/6890" ]
[ "01-01-2014 10:60", "32-01-2014 10:50", "01-13-2014 10:50", "3245678", "5432", "21", "3456789", "567454", "12/12", "12-12", "date", "12.12" ]
3,264
^([0-9]{4})([0-9]{5})([0-9]{1})$
The INN code is formed by: the code of the tax department where INN was given (4 numbers), the record number of a registered company in the territorial section of the Unified State Register of Legal Entities in the tax department where INN was given (5 numbers), check digit (1 numbers)
Matches INN code is formed by: the code of the tax department where INN was given (4 numbers), the record number of a registered company in the territorial section of the Unified State Register of Legal Entities in the tax department where INN was given (5 numbers), check digit (1 numbers) Match examples: - "1234567891" - "6121546557" - "2996330885" Non-match examples: - "-" - "23"
[ "1234567891", "6121546557", "2996330885", "9071143858", "6831050660", "5032286810", "5643661741", "4289211487", "5130348925", "3124211984", "1203313918", "4960218069", "4205611860" ]
[ "-", "23", "234", "4freds", "34256", "654", "########", "$4567", "12/12", "9932.234", "4342", "9876443456789098765456789" ]
3,277
^([0-9]{1})([0-9]{2})([0-9]{2})([0-9]{7})([0-9]{1})$
The OGRN code is formed by: the state registration number has the status of the main one (1 number), two last numbers of the year when the record was made (2 numbers), the sequence number of a constituent entity of Russia according to the list of constituent entities of Russia (2 numbers), record number entered in the state register within a year (7 numbers), check digit (1 number)
Matches OGRN code is formed by: the state registration number has the status of the main one (1 number), two last numbers of the year when the record was made (2 numbers), the sequence number of a constituent entity of Russia according to the list of constituent entities of Russia (2 numbers), record number entered in the state register within a year (7 numbers), check digit (1 number) Match examples: - "1234567891234" - "0175106545632" - "5969169407468" Non-match examples: - "-" - "23"
[ "1234567891234", "0175106545632", "5969169407468", "6123158937485", "6423933815629", "5573896389764", "3982998881161", "8545973921523", "0707207053700", "1299659347786", "0246919033615", "9060347655405", "7652089273422" ]
[ "-", "23", "3214", "123", "#3", "#########", "12/12", "12-12-12", "werrfghtjk", "4532", "23213433253453451234242343214222", "34213241542t56769867956487594" ]
3,278
^((0[1-9]|[12][0-9]|3[01])([/])(0[13578]|[1][02])([/])(19[0-9][0-9]|20[0-9][0-9]))|((0[1-9]|[12][0-9]|30)([/])(0[469]|11)([/])(19[0-9][0-9]|20[0-9][0-9]))|((0[1-9]|[1][0-9]|[2][0-8])([/])(02)([/])(19[0-9][0-9]|20[0-9][0-9]))|((29)([/])(02)([/])(190[48]|19[13579][26]|19[2468][048]|20[02468][048]|20[13579][26]))$
This pattern validates dates with slash (/) separator and with years between 1900 and 2099.
This pattern validates dates with slash (/) separator and with years between 1900 and 2099. Match examples: - "01/01/1900" - "05/12/2014" - "31/12/2099" Non-match examples: - "41/01/1900" - "21/31/2014"
[ "01/01/1900", "05/12/2014", "31/12/2099", "12/02/1928", "29/02/1964", "29/04/1975", "01/04/2045", "01/02/2090", "29/02/2024", "28/10/2006", "30/09/2014", "05/02/2029", "30/06/1902" ]
[ "41/01/1900", "21/31/2014", "21/12/1899", "21/12/2100", "12-12-12", "date", "12/12/12", "13245678", "2342", "0.0", "12", "123456789" ]
3,280
^[1-9][0-9][0-9][0-9][0-9][0-9]$
picode test
Matches 6 digit pin codes Match examples: - "221001" - "929803" - "304135" Non-match examples: - "abcdd" - "ewrtyu"
[ "221001", "929803", "304135", "957924", "390543", "962831", "484081", "122937", "624889", "689953", "123367", "535820", "375211" ]
[ "abcdd", "ewrtyu", "werty", "ertyuh", "RTY", "WERTYU6543E", "IJOUHYgtfvgbhn876tJ", "gfdreFVGBG54", "hgrFVGGt654ed", "BGFF", "pincode", "######" ]
3,347
^((19[0-9][0-9])|(20[0-1][0-5]))\-((0?[1-9])|(1[0-2]))\-((0?[1-9])|([1-2][0-9])|(3[0-1]))$
Year, month and day with dashes.Year starts from 1900 to 2015 and must be 4 digits.
Matches year, month and day with dashes.Year starts from 1900 to 2015 and must be 4 digits. Match examples: - "2012-05-21" - "1960-12-14" - "1910-5-3" Non-match examples: - "2011/5/21" - "60-12-14"
[ "2012-05-21", "1960-12-14", "1910-5-3", "1924-02-18", "2010-06-31", "2013-5-12", "2004-12-14", "1940-10-31", "1911-09-31", "1915-12-01", "1940-7-31", "2003-05-17", "2005-11-28" ]
[ "2011/5/21", "60-12-14", "2021-5-3", "12/12/12", "12:12:12", "12:12:20", "12-12-2020", "noon", "03", "$45", "date", "5%" ]
3,349
^([A-Z]{1}\w{1,3}) (\d{1}[A-Z]{2})$
simple validation of a UK postcode. Examples of valid: AA9A 9AA A9A 9AA A9 9AA A99 9AA AA9 9AA AA99 9AA
Matches UK postcode. Examples of valid: AA9A 9AA A9A 9AA A9 9AA A99 9AA AA9 9AA AA99 9AA Match examples: - "EC1A 2BB" - "WyMM 8YE" - "IwSy 1KR" Non-match examples: - "111A 1BB" - "234567"
[ "EC1A 2BB", "WyMM 8YE", "IwSy 1KR", "NA1 3ZE", "WWiC 8TW", "QbM 4YE", "JF 5QO", "TCsL 1TU", "ET 6CY", "Nisg 1IY", "TZON 1VV", "A1 6QG", "DB 4AV" ]
[ "111A 1BB", "234567", "34rgtr", "plate", "u7tfgy", "f4ugh495", "IHUY78y34rhes", "4iueh&Y*f", "HHu8uUhu8", "fr245(*y", "UHU894fre", "HHHUH8989br" ]
3,368
[0-9]{2}-?[DF][A-Z]{2}-?[0-9]{1}|[DF][A-Z]{1}-?[0-9]{3}-?[A-Z]{1}|[DF]-?[0-9]{3}-?[A-Z]{2}|[DF][A-Z]{2}-?[0-9]{2}-?[A-Z]{1}$
Check for dutch moped licenseplate number validity
Matches dutch moped license plate number validity Match examples: - "D-123-AS" - "D123AS" - "F-123-SA" Non-match examples: - "Others" - "moped"
[ "D-123-AS", "D123AS", "F-123-SA", "F123SA", "F534CM", "38FLF8", "D612UY", "FFN-27B", "71DBX8", "D-071ZK", "85-DLD-3", "DPP19-X", "F829VS" ]
[ "Others", "moped", "license plate", "34r5trf", "frgtyh645", "54vcv", "u878^&", "uyg^T", "UYGUGYY88hvgGGG", "HJgfyugt897tyg", "GYYgy87", "eufgduw" ]
3,380
\(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\)
This regex finds the IPs in its route. This uses the UNIX Bash 'traceroute' command's IP format
Matches IPs addresses. This uses the UNIX Bash 'traceroute' command's IP format Match examples: - "(8.8.8.8)" - "(127.0.0.1)" - "(58.5.15.18)" Non-match examples: - "(a.sg.af.)" - "8.8.8.8"
[ "(8.8.8.8)", "(127.0.0.1)", "(58.5.15.18)", "(9.00.12.124)", "(4.2.247.877)", "(0.718.30.0)", "(1.554.02.841)", "(6.55.410.3)", "(558.08.9.53)", "(8.57.32.27)", "(21.4.43.8)", "(6.13.025.740)", "(65.0.574.1)" ]
[ "(a.sg.af.)", "8.8.8.8", "3245678", "(84)", ".34.34", "(.)", "IP", "LINUX", "56789.8765", "34.2324.", "31223.432.2343.4213.234.2342", "5443.354.35" ]
3,381
^([A-z]{2}\d{7})|([A-z]{4}\d{10})$
UK Parcelforce delivery tracking code for internal UK posts. Comes in two formats 2 letters and 7 numbers (e.g. AA1234567) and 4 letters and 10 numbers (e.g. AAAA1234567890). Case insensitive.
Matches UK Parcelforce delivery tracking code for internal UK posts. Comes in two formats 2 letters and 7 numbers (e.g. AA1234567) and 4 letters and 10 numbers (e.g. AAAA1234567890). Case insensitive. Match examples: - "AA1234567" - "AAAA1234567890" - "JY7712375" Non-match examples: - "non" - "matching"
[ "AA1234567", "AAAA1234567890", "JY7712375", "bJ8510300", "Rq2086860", "rFFH6577541147", "Hi2791279", "jMgi4477954860", "Wv3215163", "Hk2856684", "]CMU3926045687", "EJX]4546430558", "DsNm4593829026" ]
[ "non", "matching", "examples", "hy7t663defc", "34f34ev", "435ygtr", "45gtrJIHUYGT", "efrwth54rwfd", "efnkjUYTvyuyg78", "erf8756bHGcfthu", "f4re^&ff", "$45" ]
3,383
^([A-z]{2}\d{9}[Gg][Bb])|(\d{12})$
UK Parcelforce delivery tracking code for international tracking of exports. Comes in two formats: 2 letters and 9 numbers and GB (e.g. AA123456789GB) and 12 numbers (e.g. 123456789012). Case insensitive.
Matches UK Parcelforce delivery tracking code for international tracking of exports. Comes in two formats: 2 letters and 9 numbers and GB (e.g. AA123456789GB) and 12 numbers (e.g. 123456789012). Case insensitive. Match examples: - "AA123456789GB" - "123456789012" - "JW114554115GB" Non-match examples: - "non" - "matching"
[ "AA123456789GB", "123456789012", "JW114554115GB", "968624923500", "^L809816187gb", "947733690091", "R^768258000gb", "Fs317433507gb", "044702913182", "Ua243127568Gb", "578094898939", "155269098434", "tB011083276Gb" ]
[ "non", "matching", "examples", "FTGVJHUHYG8y7t6rtyf", "32fewsc", "4fewdsc98yiuhk", "tguyhb3ewds", "njhuytt", "IUGYTRYDTFCGHV", "efdiwu&^Ttyftuyg", "f34ewds7t8yi", "hy7t66" ]
3,384
^[A-z]{2}\d{9}(?![Gg][Bb])[A-z]{2}$
UK Parcelforce delivery tracking code for international tracking of imports. Uses a negative look ahead to prevent it ending in GB which would be an international export code.
Matches UK Parcel force delivery tracking code for international tracking of imports. Uses a negative look ahead to prevent it from ending in GB which would be an international export code. Match examples: - "AA123456789AA" - "`s222501350jn" - "YK497549717Tf" Non-match examples: - "AA123456789GB" - "AA123456789gb"
[ "AA123456789AA", "`s222501350jn", "YK497549717Tf", "]a850402060mL", "Pl836064353gi", "KN398950160cM", "tk755131768JN", "Cy415708352PT", "H\\495029367rN", "o]014906363bV", "Z\\018566877sX", "ZE350488757z\\", "hl632529674Lu" ]
[ "AA123456789GB", "AA123456789gb", "AA123456789Gb", "AA123456789gB", "43fec8d7uhjb", "r13f4reds", "iu89y7t6rytfg", "efi23fuh34rf", "34fre4freoUIGI", "FTGVJHUHYG8y7t6rtyf", "#", "$456789" ]
3,385
^(?:[A-z]{2})?\d{9}(?:[A-z]{2})?$
TNT UK delivery company consignment number tracking code for TNT Track and Trace service. The system will use the 9 digit code (e.g. 123456789) or you can use the letters as shown on your consignment note (e.g. GE123456781WW). Case insensitive.
Matches TNT UK delivery company consignment number tracking code for TNT Track and Trace service. The system will use the 9 digit code (e.g. 123456789) or you can use the letters as shown on your consignment note (e.g. GE123456781WW). Case insensitive. Match examples: - "123456789" - "GE123456781WW" - "729600602Ey" Non-match examples: - "non" - "matching"
[ "123456789", "GE123456781WW", "729600602Ey", "931409146", "zK253794572]d", "042064816^b", "611846132", "si063107134", "\\x203621404OT", "EL520652755", "TY504476227", "nc503210123", "893936606QU" ]
[ "non", "matching", "examples", "3283.312.", "tracking", "314567ytgrfe", "34fews", "34565trefdef", "jhg543we", "341fq4ewr", "54wrgrf", "43fec8d7uhjb" ]
3,387
^\d{4}\/\d{1,2}\/\d{1,2}$
This regular expressions matches jalali dates of the form YYYY/XX/XX where XX can be 1 or 2 digits long and YYYY is always 4 digits long.
This regular expressions matches jalali dates of the form YYYY/XX/XX where XX can be 1 or 2 digits long and YYYY is always 4 digits long. Match examples: - "1394/01/3" - "1365/12/31" - "1397/02/01" Non-match examples: - "1394/1/555" - "139/1/4"
[ "1394/01/3", "1365/12/31", "1397/02/01", "2586/9/66", "6350/9/12", "9325/1/98", "1077/7/67", "7807/9/57", "9125/35/4", "2109/6/23", "6564/9/81", "2702/9/04", "6610/1/7" ]
[ "1394/1/555", "139/1/4", "1/11/1394", "1234567", "date", "12-12-12", "12 12 12", "3 3 30", "09 09 09 09", "3245678", "12", "$45" ]
3,394
[0-9]{4}[/.-](?:1[0-2]|0?[1-9])[/.-](?:3[01]|[12][0-9]|0?[1-9])
Date Year-Month-Day. From http://tools.twainscanning.com/getmyregex
Matches date in form Year-Month-Day Match examples: - "2015-08-31" - "0132/10/12" - "9345.12.31" Non-match examples: - "31/08/2015" - "date"
[ "2015-08-31", "0132/10/12", "9345.12.31", "5660-11/27", "5881-08-2", "4286-12/31", "1724-1.30", "5107/9-30", "3508-08-28", "3245.8-04", "6988.01/18", "4625/12.9", "9173/11-11" ]
[ "31/08/2015", "date", "jan 5th", "3rd of jun", "aug 6 2008", "121212", "12 12 12", "12 12 1212", "1212121212", "liu87y6tyg", "jehfef", "328472398472934" ]
3,417
(facebook|twitter|youtube)
Google Analytics Segment by source social media. From http://tools.twainscanning.com/getmyregex .
Matches facebook, twitter, or youtube Match examples: - "facebook" - "twitter" - "youtube" Non-match examples: - "imgur" - "3e456yhtbgf"
[ "facebook", "twitter", "youtube" ]
[ "imgur", "3e456yhtbgf", "eqf45gtrvfd", "4rfgvwre", "snapchat", "43fred", "X", "g54red", "qrg4ruyn", "social media", "google", "w4jrgrd" ]
3,420
((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])
IP address IPv4 (127.0.0.1) . From http://tools.twainscanning.com/getmyregex .
Match IP address IPv4 (127.0.0.1) Match examples: - "127.0.0.1" - "250.136.255.92" - "253.5.255.111" Non-match examples: - "127-0-0-1" - "IP"
[ "127.0.0.1", "250.136.255.92", "253.5.255.111", "7.250.223.5", "170.2.9.252", "250.97.253.53", "255.253.218.19", "254.251.251.250", "39.194.7.255", "226.253.251.250", "255.254.0.251", "1.2.5.251", "250.255.251.252" ]
[ "127-0-0-1", "IP", "231/12312/123", "5432", "31245678", "juytfvghbi87", "g8g", "3i4u984", "##34", "##########", "op98yttygbh", "elcdoh" ]
3,425
(?:2[0-3]|[01]?[0-9])[:.][0-5]?[0-9]
Time HH:MM (23:30). From http://tools.twainscanning.com/getmyregex .
Matches time in format HH:MM (23:30) Match examples: - "23:30" - "23.30" - "20.7" Non-match examples: - "23-30" - "time"
[ "23:30", "23.30", "20.7", "23.6", "20:0", "22.23", "23:0", "22:08", "20:00", "06.5", "21:47", "8.1", "14:1" ]
[ "23-30", "time", "12/12", "11 11", "3498765", "noon", "monday", "1 pm", "32434322", "2312", "43434", "234565432" ]
3,427
[0-9]{5}\s?[0-9]{5}
Basic UTR and CRT formats, 10 digits however are often written with an optional space after 1st 5
Matches basic UTR and CRT formats, 10 digits however are often written with an optional space after 1st 5 Match examples: - "1234567890" - "12345 67890" - "14980 16473" Non-match examples: - "123 4567890" - "A123456789"
[ "1234567890", "12345 67890", "14980 16473", "70356 33356", "7045456535", "6505015311", "2297102022", "4941497592", "66120\f53700", "1614435240", "8589244725", "4414717487", "9257801789" ]
[ "123 4567890", "A123456789", "2345", "efr54rfe", "34fdf", ".file", "3455%", "34RTRFVD", "3EW", "fredc", "EFGRED", "ER5TRGY" ]
3,448
^([1-9]|1[0-2])$
Simple check for a value between 1 and 12
Simple check for a value between 1 and 12 Match examples: - "1" - "2" - "12" Non-match examples: - "-1" - "13"
[ "1", "2", "12", "3", "4", "5", "6", "7", "8", "9", "10", "11" ]
[ "-1", "13", "A1", "14", "-12", "2345", "44", "23", "12.22", "235340", "493", "1,000" ]
3,454
^(?=.*[1-9].*)[0-9]{3}$
3 digit number representing an HMRC Tax Office. Office 000 is not valid
Matches 3 digit number representing an HMRC Tax Office. Office 000 is not valid Match examples: - "001" - "123" - "940" Non-match examples: - "-01" - "000"
[ "001", "123", "940", "675", "518", "408", "695", "515", "026", "432", "225", "346", "757" ]
[ "-01", "000", "90.1", "742305", "148179", "748684", "367425", "3269", "2595", "2839", "700250579", "820281690" ]
3,457
^(GB)?([0-9]{9})$
If you dont need to validate anything other than UK Numbers then this is for you, with optional GB at the start. If you need other countries then the EU Pattern is better suited
Matches UK Numbers, with optional GB at the start. Match examples: - "GB123456789" - "123456789" - "GB604774876" Non-match examples: - "GB12345678" - "AA123456789"
[ "GB123456789", "123456789", "GB604774876", "GB377715572", "GB306556503", "410056552", "934546885", "539884648", "004466730", "070159455", "GB957511261", "GB957511261", "GB820935266" ]
[ "GB12345678", "AA123456789", "1234567", "GB0", "GB7", "GB5", "fghtgr", "435tgrfvd", "ertrgefw", "JHGYTF", "aTF%Ffy", "43fre" ]
3,459
^[0-9]{8}R[A-HJ-NP-TV-Z]$
Pension Schemes have their own references, 8 digits followed by R and then another letter.
Matches Pension Schemes with 8 digits followed by R and then another letter. Match examples: - "12345678RA" - "43213245RT" - "83536006RP" Non-match examples: - "1234567RA" - "432132456RR"
[ "12345678RA", "43213245RT", "83536006RP", "09187372RA", "82927952RN", "06159369RM", "62722611RD", "05680285RH", "97060368RL", "65424962RR", "90220825RL", "43371559RT", "67100732RY" ]
[ "1234567RA", "432132456RR", "23657005*V", "54102433!J", "56423464JG", "14301651ET", "79870307vG", "74051292DW", "53918747;Q", "18732502\\B", "59288318HP", "52153646mD" ]
3,460
^(A[A-HJ-M]|[BR][A-Y]|C[A-HJ-PR-V]|[EMOV][A-Y]|G[A-HJ-O]|[DFHKLPSWY][A-HJ-PR-Y]|MAN|N[A-EGHJ-PR-Y]|X[A-F]|)(0[02-9]|[1-9][0-9])[A-HJ-P-R-Z]{3}$
Current standard UK Registration plates running from Sept 2001 to Feb 2051, basic form AA99AAA but contains prefix combinations, the only number not used is 01
Matches standard UK Registration plates running from Sept 2001 to Feb 2051, basic form AA99AAA but contains prefix combinations, the only number not used is 01 Match examples: - "NE02ABC" - "AA58DEF" - "CH08NDO" Non-match examples: - "NF02ABC" - "AA01WUX"
[ "NE02ABC", "AA58DEF", "CH08NDO", "GL05KLZ", "02RJA", "GC24OTS", "03JEG", "BE00EHK", "07-UT", "MAN04AVY", "NB60ZUA", "CM87XTT", "BA05CKX" ]
[ "NF02ABC", "AA01WUX", "werty", "2345678", "ID", "huy76t5rt", "DDDjjjj", "UHDIhIhef", "JIDHIEUH*(8d", "jndekUHIb", "dejwnsU", "#####" ]
3,467
^A([0-9]|10)$
Sizes of paper from A0-A10
Matches sizes of paper from A0-A10 Match examples: - "A0" - "A6" - "A10" Non-match examples: - "A-1" - "B1"
[ "A0", "A6", "A10", "A5", "A1", "A7", "A2", "A6", "A8", "A9", "A4" ]
[ "A-1", "B1", "A11", "*10", "M10", "R7", ")8", ":10", "x10", "c10", "V10", "T10" ]
3,473
^([1-9]+)?[02468]$
Any number possible as long as its even.
Matches any number possible as long as its even. Match examples: - "2" - "64" - "4343253298" Non-match examples: - "3" - "65"
[ "2", "64", "4343253298", "54462446332341621278485525477542956571558953391926", "4", "0", "2877461963813168652", "62928195697568977435979956928831314989257272", "8", "78947698", "364543262324", "234564", "342567654" ]
[ "3", "65", "5345643531", "65789091", "35932109", "348712937", "4398523", "4390523", "0987654321", "234567", "67545", "3453019" ]
3,475
^(-?)((\d{1,3})(,\d{3})*|\d+)((\.\d+)?)$
Matches negative and positive numbers with or without commas and with or without decimals
Matches negative and positive numbers with or without commas and with or without decimals Match examples: - "-9.999" - "99,999,999.99" - "9999.99" Non-match examples: - "-.9" - ".9"
[ "-9.999", "99,999,999.99", "9999.99", "999", "973,898,080,023,320,174,275,691,896,152,929,655,872,854,275,405,642,525,164,040,715,794,125,153,765,149,370,547,663,723,520,381,412,935,153,182,317,140,251,596,179,426,310,146,514,816,550,425,261,266,914,296,309,977,419,649,196,217,745,536,552,854,423,520,767,883,456,706,212,962,862,792,823,683,766,127,484,450,256,322,208,506,810,163,708,363,530", "-107435874649536107.8425896633773618788668368182747602093390185", "574,157,771,787,480,745,391,222,968,697,710,809,027,945,859,504,193,784,865,300,586,485,054,581,945,331,306,825,209,685,537,173,186,524,778,331,974,946,315,377.7655430909592566053000542956697504011368047909223541262517872627668012", "7313696270262177170837", "31,488,896,592,575,159,982,969,001,342,115,430,876,192,242,360,264,280,364,174,659,994,129,828,840,905,580,876,205,901,545,632,615,330,748,307,674,682,190,322,580,290,582,118,805,859,233,158,916,497,461,750.1462680935394607079801548365023342919593", "68,003,464,907,564,254,704,314,847,875,828,177,723,429,372,052,221,672,410,341,505,941,792,775,515,083,508,684,418,580,476,497,609,295,879,951,226,673,385,005,628,067,062,694,799,831,691,923,097,473,628,070,117,889,840,844,522,227,274,243,367,836,552,928,077,075,868,961,876,296,593,950,430,931,305,478,348,514,453,522,818.6645486536540997105751121294598781036", "-4821832801840457814747826278894671531051137138018416901702041595271519335526298581447861181793086752", "55253465954372875860773921365960757899176704913.502999822699787898412276", "28808141779321425346696897" ]
[ "-.9", ".9", "9,99.99", "4fbh3q", "#3", "45%", "$34", "12/12", "3.", "+9876", "8976.", "3283.312." ]
3,481
^([\$@!%\*\?&`~\^\\(\)\[\]\{\}<>,\._#-]+[0-9]+[a-z]+[A-Z]+|[0-9]+[\$@!%\*\?&`~\^\\(\)\[\]\{\}<>,\._#-]+[a-z]+[A-Z]+|[0-9]+[a-z]+[\$@!%\*\?&`~\^\\(\)\[\]\{\}<>,\._#-]+[A-Z]+|[0-9]+[a-z]+[A-Z]+[\$@!%\*\?&`~\^\\(\)\[\]\{\}<>,\._#-]+|[\$@!%\*\?&`~\^\\(\)\[\]\{\}<>,\._#-]+[0-9]+[A-Z]+[a-z]+|[0-9]+[\$@!%\*\?&`~\^\\(\)\[\]\{\}<>,\._#-]+[A-Z]+[a-z]+|[0-9]+[A-Z]+[\$@!%\*\?&`~\^\\(\)\[\]\{\}<>,\._#-]+[a-z]+|[0-9]+[A-Z]+[a-z]+[\$@!%\*\?&`~\^\\(\)\[\]\{\}<>,\._#-]+|[\$@!%\*\?&`~\^\\(\)\[\]\{\}<>,\._#-]+[a-z]+[0-9]+[A-Z]+|[a-z]+[\$@!%\*\?&`~\^\\(\)\[\]\{\}<>,\._#-]+[0-9]+[A-Z]+|[a-z]+[0-9]+[\$@!%\*\?&`~\^\\(\)\[\]\{\}<>,\._#-]+[A-Z]+|[a-z]+[0-9]+[A-Z]+[\$@!%\*\?&`~\^\\(\)\[\]\{\}<>,\._#-]+|[\$@!%\*\?&`~\^\\(\)\[\]\{\}<>,\._#-]+[a-z]+[A-Z]+[0-9]+|[a-z]+[\$@!%\*\?&`~\^\\(\)\[\]\{\}<>,\._#-]+[A-Z]+[0-9]+|[a-z]+[A-Z]+[\$@!%\*\?&`~\^\\(\)\[\]\{\}<>,\._#-]+[0-9]+|[a-z]+[A-Z]+[0-9]+[\$@!%\*\?&`~\^\\(\)\[\]\{\}<>,\._#-]+|[\$@!%\*\?&`~\^\\(\)\[\]\{\}<>,\._#-]+[A-Z]+[0-9]+[a-z]+|[A-Z]+[\$@!%\*\?&`~\^\\(\)\[\]\{\}<>,\._#-]+[0-9]+[a-z]+|[A-Z]+[0-9]+[\$@!%\*\?&`~\^\\(\)\[\]\{\}<>,\._#-]+[a-z]+|[A-Z]+[0-9]+[a-z]+[\$@!%\*\?&`~\^\\(\)\[\]\{\}<>,\._#-]+|[\$@!%\*\?&`~\^\\(\)\[\]\{\}<>,\._#-]+[A-Z]+[a-z]+[0-9]+|[A-Z]+[\$@!%\*\?&`~\^\\(\)\[\]\{\}<>,\._#-]+[a-z]+[0-9]+|[A-Z]+[a-z]+[\$@!%\*\?&`~\^\\(\)\[\]\{\}<>,\._#-]+[0-9]+|[A-Z]+[a-z]+[0-9]+[\$@!%\*\?&`~\^\\(\)\[\]\{\}<>,\._#-]+)+$
Password with lower, upper case letters, digits and special characters in any order
Matches password with lower, and upper case letters, digits, and special characters in any order Match examples: - "#3aZ" - "3#aZ" - "3a#Z" Non-match examples: - "#$@!" - "aB3a"
[ "#3aZ", "3#aZ", "3a#Z", "3aZ#", "#3Za", "3#Za", "3Z#a", "3Za#", "#a3Z", "a#3Z", "a3#Z", "a3Z#", "#aZ3", "a#Z3", "aZ#3", "aZ3#", "#Z3a", "Z#3a", "Z3#a", "Z3a#", "#Za3", "Z#a3", "Za#3", "Za3#" ]
[ "#$@!", "aB3a", "zzzz", "BBBB", "1234", "r4fr4ecUYF", "fervdrtg", "3443ferfr", "r4ewd4513", "43fe7", "3r783y43hre", "4fbh3q" ]
3,483
<!--(?!\s*\[if[^]]+]>[^<]*<!\[endif\]).*?-->
Matches html comments but excludes comments that contain if statements
Matches html comments but excludes comments that contain if statements Match examples: - "<!-- this is a comment -->" - "<!--;^RN|Ma){QQuC?"z|RVWY_@i]%3>2=d,z-->" - "<!--Kb;-S2tff.DGG\WZ!hF(]/`0-].z$\* t*/Ir39:8^B+s&@{tX$;?-->" Non-match examples: - "<!-- [if lt IE 9]>blah<![endif]-->" - "<ref>"
[ "<!-- this is a comment -->", "<!--;^RN|Ma){QQuC?\"z|RVWY_@i]%3>2=d,z-->", "<!--Kb;-S2tff.DGG\\WZ!hF(]/`0-].z$\\* t*/Ir39:8^B+s&@{tX$;?-->", "<!---->", "<!--E:gh;a]4\"s-->", "<!--/~u{c_w+Qn8hb c.oUqow/[sRvVv1R3=[k`$:WRr-->", "<!--0{h8J$Ep qOt6p3dTZfOk:z-->", "<!--e( >80-z[?r?MLz&xeNi-70uEWok$/haO3+UbK)tvCh^(LERX?0l^^R >!.W/d<V{JssHYMt$/}D\\9,ScN6g>m-->", "<!--l svPDf{F<0o1@>_{yAMB=v&8Hnh-J]^a^cgS,I_g#U97kfAraoq08*81*VK'uDWr|9+R<Suyx<#vHh:yUoj,tC5DUL'{l-->", "<!--v4Dag[]X'j6O7qO]K.#IT<Dd7lB*Cx$Jq8yYz{`-->", "<!--m!`!Xmfv7q7^[WR6D&Os(Ph-\"M}I6>K\\:^|WyPfPN+oTU=6-+bhuHBPe}.~j+g.!\\7rcoJ`rt#j)p6\"=o7REs>`BeLT<qAn-->", "<!--wH1m9&T('3UZFB/$J`N/f^ZsR4L9K'UHX^QjE\",oLvA[Mafz\";`8}~qx W\\r*t/m\\[q<-->", "<!--VQ5 WgKWRuBnmVL#nt[Cr07h@Q/w_LEis~\\u:_H-->" ]
[ "<!-- [if lt IE 9]>blah<![endif]-->", "<ref>", "#ekf", "//grefdw", "/ erwfds", "\\\\frf4r3", "comment", "## frgrtf", "/* erhfgejr */", "< rfer <", "> jefejer <", "/// rtgfd" ]
3,488
^\d{1,2}\/\d{1,2}\/\d{4}$
This regular expressions matches dates of the form XX/XX/YYYY where XX can be 1 or 2 digits long and YYYY is always 4 digits long
This regular expressions matches dates of the form XX/XX/YYYY where XX can be 1 or 2 digits long and YYYY is always 4 digits long Match examples: - "4/1/2001" - "12/12/2001" - "55/5/3434" Non-match examples: - "1/1/01" - "12 Jan 01"
[ "4/1/2001", "12/12/2001", "55/5/3434", "7/34/0493", "5/2/6783", "9/3/6347", "67/86/8577", "2/79/7620", "5/6/1794", "3/00/1375", "86/18/0593", "0/8/0673", "9/94/5749" ]
[ "1/1/01", "12 Jan 01", "1-1-2001", "Jan", "July 5th", "23-23-23-23", "92", "394", "$45", "3929", "65%", "12-12" ]
3,546
((a|p|A|P)(m|M)\s{0,1}(0[0-9]|1[0-2]|[0-9]):[0-5][0-9]:[0-5][0-9])|((a|p|A|P)(m|M)\s{0,1}(0[0-9]|1[0-2]|[0-9]):[0-5][0-9])|((0[0-9]|1[0-2]|[0-9]):[0-5][0-9]\s{0,1}(a|p|A|P)(m|M))|((0[0-9]|1[0-2]|[0-9]):[0-5][0-9]:[0-5][0-9]\s{0,1}(a|p|A|P)(m|M))|((0[0-9]|1[0-9]|2[0-3]|[0-9]):[0-5][0-9]:[0-5][0-9])|((0[0-9]|1[0-9]|2[0-3]|[0-9]):[0-5][0-9])
Matches all types of time declaration with ':' separator.
Matches all types of time declaration with ':' separator. Match examples: - "0:26:12 aM" - "00:26:12 Pm" - "0:26:12aM" Non-match examples: - "eferfqe" - "ergqfr"
[ "0:26:12 aM", "00:26:12 Pm", "0:26:12aM", "00:26:12Pm", "Am 0:26:12", "pM 00:26:12", "Am0:26:12", "pM00:26:12", "0:26 PM", "01:26 am", "0:26PM", "01:26am", "Am 0:26", "pM 00:26", "Am0:26", "pM00:26", "23:26:12", "00:26:12", "0:26:12", "23:26", "0:26" ]
[ "eferfqe", "ergqfr", "time", "noon", "39404", "234je", "am", "pm", "4334", "ef394", "323423", "43234" ]
3,549
(0\d|1\d|2[0-4]) ?: ?([0-5]\d)( ?: ?[0-5]\d)?
Validate hh:minmin:ss
Validate hh:minmin:ss Match examples: - "09:03:05" - "08 : 03 : 57" - "24:00: 05" Non-match examples: - "17:2" - "3:52"
[ "09:03:05", "08 : 03 : 57", "24:00: 05", "00: 00 :00", "17:54", "08 : 21", "20:06", "04 : 30", "18:44", "03:16 :10", "12 :03 :22", "11:49:41", "00:07" ]
[ "17:2", "3:52", "time", "2345678", "5432", "noon", "12-12", "12/12", "12/12/12", "12-12/12", "00000000", "9348239" ]
3,556
^-?[1-9]\d*\.?(\d+([eE][-+]\d+)?)?$
Matches numbers including scintific format
Matches numbers including scientific format Match examples: - "-23333.1e+24" - "123" - "34.2" Non-match examples: - "23333.01+24" - "+123"
[ "-23333.1e+24", "123", "34.2", "-87693717247827161710694734576192125749089372404404342916330522406312", "-58564737552536.48176669308690674801075092379671445298833269473178731660961607224906327105271832084398137517568204770E-543040380162654177953787637765950840354806562831489817623846468396061531953", "862812362091683.", "-14649493636878381404701033168989841646", "-8101504129224558449019.4405431612507291079373009997249872857073731454645109061855654267230552770570547052296479060", "-26289839608675870704205108719611455149053083752457354690998470666126956758238188267599153792124132000685265298028593", "-6675064312488545378599501435434424173844999467920.", "-6814243005789112884114406497450943039122013912782781.890142773956864806716537437059292866176042454049110855352E-316423271089475072396705264608329388811095333019381819638428674", "286373605821936943615099.", "-970298087661834718193198391350046452602031077045708513613731852440827586137422875" ]
[ "23333.01+24", "+123", "34.-20", "erfr", "x10", "SF", "erfher", "ferh", "+234", "#43", "45%", "$67" ]
3,561
^(0?[1-9]|1[012])[- /.](0?[1-9]|[12][0-9]|3[01])[- /.](19|20)\d\d$
Date in MM/DD/YYYY (USA Format). Allows for 1 or 2 digit month and day. Requires 4 digit year between 1900-2999. Allows for dash, slash, period or space for separators.
Matches date in MM/DD/YYYY (USA Format). Allows for 1 or 2 digit month and day. Requires 4 digit year between 1900-2999. Allows for dash, slash, period or space for separators. Match examples: - "01/02/2015" - "5-7-1915" - "12.8.2035" Non-match examples: - "11-11-1845" - "31/12/2000"
[ "01/02/2015", "5-7-1915", "12.8.2035", "7 15 1963", "04.4-2026", "11-16 2045", "12 31/1965", "01/06.2038", "6/8.2070", "11 22.1990", "12 31 1971", "10-1 1929", "10.8-1940" ]
[ "11-11-1845", "31/12/2000", "10-17-85", "jan 3", "monday the 4", "september", "324rfds", "july", "AM", "noon", "August 6th", "23erfo" ]
3,601
^(1[0-2]|0[1-9]|[1-9])\/(1[0-9]|2[0-9]|3[0-1]|0[1-9]|[1-9])\/\d{4}$
is very accurate when catching and matching dates within the correct ranges in US standard date formats MM/DD/YYYY
matches dates within the correct ranges in US standard date formats MM/DD/YYYY Match examples: - "1/3/2017" - "01/03/2017" - "12/12/2017" Non-match examples: - "31/12/2017" - "99/99/9999"
[ "1/3/2017", "01/03/2017", "12/12/2017", "12/31/2017", "11/29/4173", "03/30/1641", "2/26/2848", "4/14/6563", "01/31/8745", "12/2/5702", "09/29/3083", "11/07/8412", "02/27/8779" ]
[ "31/12/2017", "99/99/9999", "12-31-2017", "December 30th, 2017", "jan 3", "12-43 32", "14 433 23", "23 7834 3", "28 84 28", "12 12 12", "date", "$45" ]
3,712
((((0[1-9]|[12][0-9]|3[01])(0[13578]|10|12)(\d{2}))|(([0][1-9]|[12][0-9]|30)(0[469]|11)(\d{2}))|((0[1-9]|1[0-9]|2[0-8])(02)(\d{2}))|((29)(02)(0(0|4|8)))|((29)(02)([2468][048]))|((29)(02)([13579][26])))[- ]?\d{4})
Matches the format from www.cpr.dk and fixed to match 29th February for leap years
Matches the format from www.cpr.dk and fixed to match 29th February for leap years Match examples: - "020955-2012" - "020955-2012" - "241283-1234" Non-match examples: - "459434-1234" - "123456-1234"
[ "020955-2012", "020955-2012", "241283-1234", "290204-1234", "010111-1111", "1609902765", "1604403492", "300907-9597", "071221-9711", "130215-1984", "3112263460", "290232-1685", "290276-3597" ]
[ "459434-1234", "123456-1234", "32", "324213", "2332", "#3", "45%", "+9876", "-9876543", "12/12", "12-12", "$45" ]
3,731
(\+989|9|09)(0[1-3]|1[0-9]|2[0-2]|3[0-9]|90|9[8-9])\d{7}
Regex for current available mobile numbers mention at https://fa.wikipedia.org/wiki/%D8%B4%D9%85%D8%A7%D8%B1%D9%87%E2%80%8C%D9%87%D8%A7%DB%8C_%D8%AA%D9%84%D9%81%D9%86_%D8%AF%D8%B1_%D8%A7%DB%8C%D8%B1%D8%A7%D9%86
Matches phone numbers that start with +989, 09, 9 Match examples: - "09221113344" - "+989157097015" - "09984114118" Non-match examples: - "09057614584" - "210843631"
[ "09221113344", "+989157097015", "09984114118", "09019240398", "+989909222614", "9037817824", "+989300250188", "+989989115757", "09901083192", "+989989264032", "+989900827176", "9395962429", "9985839583" ]
[ "09057614584", "210843631", "134270843", "226845794", "029897164", "022500703", "334741498", "344497280", "379468937", "190787239", "136765751", "162658046" ]
3,753
^([1-9][0][0]|[1-9][0-9][0][0]|[1-9][0-9][0-9][0][0]|[1-9][0-9][0-9][0-9][0][0]|[1-9][0-9][0-9][0-9][0-9][0][0])$
Permite digitar valores múltiplos de 100 entre 0 e 9999999.
Matches integers between 0 and 9999999 that are multiples of 100. Match examples: - "100" - "200" - "9999900" Non-match examples: - "101" - "201"
[ "100", "200", "9999900", "392400", "8721100", "900", "149200", "50400", "9788500", "3800", "300", "700", "500" ]
[ "101", "201", "9999901", "2342", "32321", "54235", "45", "3425", "65", "78657", "5437", "465" ]
3,772
((0[1-9]|[12]\d|3[01])(0[1-9]|1[0-2])\d{3}\d{2}\d{4})
Regex to match the "Unique Master Citizen Number" based on the wikipedia description. It doesn't keep in account the checksum, but it matches the example on wikipedia.
match the "Unique Master Citizen Number" based on the wikipedia description. It doesn't keep in account the checksum, but it matches the example on wikipedia. Match examples: - "0101006500006" - "3112293253271" - "3108125465983" Non-match examples: - "none" - "#"
[ "0101006500006", "3112293253271", "3108125465983", "3109195422610", "3005759418613", "0303209389673", "0611089194958", "3102274338668", "1008516980206", "0612999408185", "1802851243292", "2912372658686", "0803454542771" ]
[ "none", "#", "3edfr", "2343", "3432345", "432", "40.43", "4%", "$43", "12/12", "3.12", "345546" ]
3,791
([0-8]?\d[0-5]?\d[0-5]?\d|900000)[NS]([0-1]?[0-7]?\d[0-5]?\d[0-5]?\d|1800000)[EW]\d{3}
NOTAM coords and radius in "Q" field
Matches Notice to Airmen (NOTAM) coords and radius in "Q" field Match examples: - "440110N0123634E005" - "63319S20302E264" - "2226S0521E554" Non-match examples: - "any other format" - "east"
[ "440110N0123634E005", "63319S20302E264", "2226S0521E554", "900000N1800000W609", "69701N1800000E005", "426N000926W162", "900000N1800000W913", "900000N17905E922", "34357N1800000E549", "900000N1104713E911", "900000N3552E951", "900000N1800000E645", "6807N30413E654" ]
[ "any other format", "east", "2345 west", "3few34", "3445g4", "east", "north south", "4349.349039", "343N.49S", "40934.err3", "49349fs", "4r89u34" ]
3,803
(((\d{2}((0[13578]|1[02])(0[1-9]|[12]\d|3[01])|(0[13456789]|1[012])(0[1-9]|[12]\d|30)|02(0[1-9]|1\d|2[0-8])))|([02468][048]|[13579][26])0229))(( |-)(\d{4})( |-)([01]8((( |-)\d{1})|\d{1}))|(\d{4}[01]8\d{1}))
Matches valid South African ID numbers based on all criteria (except of course the checksum digit at the end). Matches the format defined as: YYMMDDSSSSCAZ. YY - Year, MM - Month, DD - Day, SSSS - Gender, C - Denotes citizenship (0 or a 1), A - Always an 8, Z - Checksum digit (doesn't validate if the checksum itself is valid). Also supports the following ways of entering it: YYMMDDSSSSCAZ | YYMMDD SSSS CAZ | YYMMDD SSSS CA Z . See this for a reference: https://www.westerncape.gov.za/general-publication/decoding-your-south-african-id-number-0
Raw prompt: Matches valid South African ID numbers based on all criteria (except of course the checksum digit at the end). Matches the format defined as: YYMMDDSSSSCAZ. YY - Year, MM - Month, DD - Day, SSSS - Gender, C - Denotes citizenship (0 or a 1), A - Always an 8, Z - Checksum digit (doesn't validate if the checksum itself is valid). Also supports the following ways of entering it: YYMMDDSSSSCAZ | YYMMDD SSSS CAZ | YYMMDD SSSS CA Z . Match examples: - "9202204720082" - "920220 4720 082" - "920220 4720 08 2" Non-match examples: - "9202204720282" - "920220 4720 052"
[ "9202204720082", "920220 4720 082", "920220 4720 08 2", "920220-4720-082", "920220-4720-08-2 9202204720183", "920220 4720 183", "920220 4720 18 3", "920220-4720-183", "920220-4720-18-3", "680229-2389 186", "820202 4161-08 4", "6302101315082", "1602292137185" ]
[ "9202204720282", "920220 4720 052", "920220 4720 05 2", "920220-4720-252", "312", "23", "-98765", "+875", "2.2", "12/12", "$12", "12-12" ]
3,811
^\d{1,2}-\d{1,2}-\d{4}$
This takes an American date using mm-dd-yyyy format. It does not validate month or day values.
This takes an American date using mm-dd-yyyy format. It does not validate month or day values. Match examples: - "12-9-1969" - "2-8-1998" - "8-17-2002" Non-match examples: - "12-9-69" - "12/2/1948"
[ "12-9-1969", "2-8-1998", "8-17-2002", "32-9-7126", "7-32-3164", "36-41-4023", "2-83-5092", "65-17-2985", "2-6-2573", "9-7-6519", "73-3-6028", "95-92-3946", "72-8-3731" ]
[ "12-9-69", "12/2/1948", "121212", "0303 32", "98 32 34", "12:12:12", "39/ 232 23", "=024", "date", "july 3rd", "4th of june", "Monday" ]
3,909
[\+-]?(([0-9]*\.[0-9]+|[0-9]+\.[0-9]*)([Ee][\+-]?[0-9]+)?[Ff]?|[0-9]+[Ff])
match a float number with Exponent sign and f sign
Match a float number with the exponent sign and f sign Match examples: - "2.0" - "0.3" - "-.4" Non-match examples: - "2" - "234"
[ "2.0", "0.3", "-.4", "3.f", "2.4E-2f", "0.4E4f", "+68434376123571142467671333051141441412549162726665641457598935856888338337434820138985484.664307172223275614010247617296990420438085998112386677234329037864208E+0662457405511922641715466678507712653", "+6176362542611252884025597684113289.8105089225831585683374870914605219366760001597567148798178476981283717742061565595146894E+694770675280515632438832830333321081149414075370607346851616310216292621614669458408723624364", "-2398391484596794397762854085052915343645012590.339019130297736924518857445618383172895615069F", "+90231760797109805979886764272453352040730501449040733319757748212598959228484795.829264756113990", "423882003293925017189914016862227084248082211151429215469802112539736543237828143699.74467043139633892985391897055925812735994337546941364549077703709", "+1923509943268612511356446160581734383473679536746387878086302297790286613301f", "-610004F" ]
[ "2", "234", ".f", "es.sss", "f", "E", "x", "x10", "exponent", "to the tenth", "323", "5432" ]
3,910
(<<=|>>=|&&=|(\|\|=)|<<|>>(\+=)|-=|(\*=)|(\/=)|%=|&=|(\^=)|(\|=)|<=|>=|==|!=|&&|(\|\|)|(\+\+)|--|>|<|\^|&|(\|)|\*|\/|%|\+|-|~|=)
matches almost all programming language operator
matches almost all programming language operators Match examples: - "++" - "<=" - ">>=" Non-match examples: - "identifier" - "2000"
[ "++", "<=", ">>=", "^", "*=", "|", ">>=", "<", "&", "|=", "+", "||", "--" ]
[ "identifier", "2000", "0xFFF", "32eedw", "3refds", "3rfeds", "54t6yhtgre", "frgter", "rt5y6t", "43tefd", "e4fqt5g", "egde" ]
3,912
^(?:[a-zA-Z]\.?){1,4}$
This expression will allow someone to place 1-4 Lower case or Upper case letters with optional periods after each letter for a total of up to 8 possible characters.
Matches strings with 1-4 Lower case or Upper case letters with optional periods after each letter for a total of up to 8 possible characters. Match examples: - "J.W.R." - "JwR" - "j.r." Non-match examples: - "j..r." - "jwers"
[ "J.W.R.", "JwR", "j.r.", "jwre", "JWWR", "J.er.e", "u.kq.R.", "uQ.x.", "F.dNx.", "u.EP", "dz.Y.", "mx", "Aw.D." ]
[ "j..r.", "jwers", "jw2", ".j.w.r", "ew87yuhbe+efuihjdsk", ".", ".ew32r4fr", "3eds.reew", "wsfeew.efw", "ewf.ewfw", "ewfgtrf.efqw32r", "es.sss" ]
3,915
^([\da-fA-f]{2}[:-]){5}[\da-fA-f]{2}$
Matches mixed case, colon or hypen hexadecimal notation. Discards string too short or long, or with invalid characters. Needs extended grep.
Matches mixed case, colon or hypen hexadecimal notation. Discards string too short or long, or with invalid characters. Match examples: - "98-CE-d0-a2-0a-68" - "98:cE:d0:a2:0a:68" - "BO:cX-32:d0-RS:C]" Non-match examples: - "98-cE-d0-a2-0a" - "98-cE-d0-a2-0a-68-f0"
[ "98-CE-d0-a2-0a-68", "98:cE:d0:a2:0a:68", "BO:cX-32:d0-RS:C]", "Oe:Qe:P2:IN:M5:VJ", "LG:BU-U[:eN-PM-dC", "\\2:RA:LI-cC-CU:CK", "MH:3e-\\1-c2-W[:A0", "6[:9J-SB-[3-bC:FP", "dC-R7-Ma:e2-QR-d^", "]1:1K-f2-QR:[Q-I9", "8R-4S-Gb:Ja-6f-TT", "4L-Mc:]^:2`:OA-6O", "f`:DA:UZ-Y2-WL-AO" ]
[ "98-cE-d0-a2-0a", "98-cE-d0-a2-0a-68-f0", "g3refr", "4t5rgwfe", "345623ewfrgt", "tyt54g", "5tgrfewrt", "2345yhgfds", "43r3t4wes", "434-g5regdfv-", "----", "refdvc-" ]
3,934
^9792\d{12}$
Matches troy credit cards (length 16, prefix 9792)
Matches troy credit cards (length 16, prefix 9792) Match examples: - "9792131111111111" - "9792461111111111" - "9792111111111111" Non-match examples: - "9792 1311 1111 1111" - "1234561234561234"
[ "9792131111111111", "9792461111111111", "9792111111111111", "9792899105732571", "9792236212517562", "9792855956101834", "9792188559945304", "9792740088676935", "9792120081486541", "9792240253366588", "9792512089752934", "9792103861993354", "9792892078668297" ]
[ "9792 1311 1111 1111", "1234561234561234", "4313803785737", "7286410428685", "8515778623679", "4829103934036", "2318501150827", "2723616635399", "1746343796917", "1352511310397", "7113822627183", "2754694421115" ]
3,936
^(?:Yes\b|No\b|yes\b|YES\b|YEs\b|yeS\b|yEs\b|NO\b|nO\b|no\b)
This regex will match below values only YES yes Yes YEs yEs yeS NO no No nO
This regex will match below values only YES yes Yes YEs yEs yeS NO no No nO Match examples: - "YES" - "nO" - "No" Non-match examples: - "Except YES yes Yes YEs yEs yeS NO no No nO" - "3freds"
[ "YES", "nO", "No", "no", "NO", "yeS", "yEs", "YEs", "Yes", "yes" ]
[ "Except YES yes Yes YEs yEs yeS NO no No nO", "3freds", "2345rfed", "maybe", "possiblly", "idk", "possibility", "who knows", "rjf3", "324ref", "jdsf", "wefjwe" ]
3,951
^01[0125]{1}[0-9]{8}
- first 2 digits are 01 - second 1 digit is 0 for (Vodafone) or 1 for (Etisalat) or 2 for (orange) or 5 for (We) - third 8 digits are between 0 and 9
Matches strings of numbers with the following constraints - first 2 digits are 01 - second 1 digit is 0 for (Vodafone) or 1 for (Etisalat) or 2 for (orange) or 5 for (We) - third 8 digits are between 0 and 9 Match examples: - "01022685544" - "01229671351" - "01208664788" Non-match examples: - "+0201622685544" - "01322685544"
[ "01022685544", "01229671351", "01208664788", "01522685544", "01102453819", "01207811393", "01591880142", "01220787889", "01073085438", "01073085438", "01008828664", "01204198011", "01589865476" ]
[ "+0201622685544", "01322685544", "01422685544", "01622685544", "01722685544", "01822685544", "01922685544", "234354657", "6245", "546754", "345245636u37", "87654" ]
3,981
^(\d|\d{1,9}|1\d{1,9}|20\d{8}|21[0-3]\d{7}|214[0-6]\d{6}|2147[0-3]\d{5}|21474[0-7]\d{4}|214748[0-2]\d{3}|2147483[0-5]\d{2}|21474836[0-3][0-9]|214748364[0-7])$
regular expression for positive integer
Matches a positive integer with max length 10 Match examples: - "2147483647" - "0" - "2147483639" Non-match examples: - "2147483648" - "0.0"
[ "2147483647", "0", "2147483639", "2146178491", "2043838193", "696", "2057398233", "100", "2147290029", "2120758935", "2113395525", "43", "2147483610" ]
[ "2147483648", "0.0", "-54645", "-987654", "+9876", "239.324", "#3", "$45", "54%", "-234.234", "+0.0", ".98765" ]
3,983
^(0)((3[0-6][0-9]))(\d{7})$
All phone numbers starting with 03*********. total 11 digit numbers.
Matches phone numbers starting with 03*********, for a total of 11 digits. Match examples: - "03355011998" - "03285760882" - "03331068752" Non-match examples: - "+923355011998" - "-43r3442"
[ "03355011998", "03285760882", "03331068752", "03304808078", "03036593646", "03504306683", "03262354454", "03621102307", "03677026308", "03219165500", "03505625978", "03571907284", "03699412297" ]
[ "+923355011998", "-43r3442", "3258093573409753945942", "###", "03'", "(03)3829472", "47348", "324567887654324567", "42", "$45", "56%", "234" ]
4,010
^[0-9]{4}(0[1-9]|1[0-2])(0[1-9]|[1-2][0-9]|3[0-1])($|(([01][0-9]|2[0-3])[0-5][0-9][0-5][0-9])$)
This expression validate the YYYYMMDDHHMMSS datetime format but also only the date YYYYMMDD. It does not control month length or leap years. Made for a SAP retail sales tickets interface. For XML pattern facet this would do: ([0-9]{4}(0[1-9]|1[0-2])(0[1-9]|[1-2][0-9]|3[0-1])(([01][0-9]|2[0-3])[0-5][0-9][0-5][0-9]))|([0-9]{4}(0[1-9]|1[0-2])(0[1-9]|[1-2][0-9]|3[0-1]))
This expression matches the YYYYMMDDHHMMSS date time format but also only the date YYYYMMDD. It does not control month length or leap years. Match examples: - "20200707181818" - "20200707" - "20200231010000" Non-match examples: - "20201232" - "20201301"
[ "20200707181818", "20200707", "20200231010000", "20200931", "00011231235959", "00000101", "46481230070908", "05451230215834", "25590127", "81181204205631", "60501214230518", "79531131", "19650231" ]
[ "20201232", "20201301", "20200028", "20200500", "20200707235978", "20201231128533", "20200327453030", "3252.54321.", "32532332", "34557564342", "423899", "435785" ]
4,029
(^[3|4|5|6|7|8|9]\d{2}(\ |-){0,1}\d{4}$)|(^[4|5|7|8]\d{3}(\ |-){0,1}\d{4}$)|(^8\d{2,3}(\ |-){0,1}\d{3,4}(\ |-){0,1}\d{3,4}$)
Supports 7 digits (starting with 3,4,5,6,7,8,9) 8 digits (starting with 4,5,7,8), machine-to-machine (M2M) numbers 9-12 digits (starting with 8).
Matches 7 digits (starting with 3,4,5,6,7,8,9), 8 digits (starting with 4,5,7,8), machine-to-machine (M2M) numbers 9-12 digits (starting with 8). Match examples: - "300 3000" - "300-3000" - "3003000" Non-match examples: - "3000 3000" - "9000 9000 9000"
[ "300 3000", "300-3000", "3003000", "762 4820", "81571127088", "8208 3987", "837-1862", "492-1995", "490 3417", "8579871", "507 3509", "8548059787", "8429437" ]
[ "3000 3000", "9000 9000 9000", "werf", "234rtdsfqwe", "#3", "32456321", "876", "3521351`2", "32534687", "231", "$45", "54%" ]
4,041
([s]){10,}
Matches the hissing noise of a snake. Link to my GitHub: https://github.com/StoddardSpencer96
Matches the hissing noise of a snake (string of any number of s more than 1). Match examples: - "ssssssssss wwwwwwwwwwwsssssssssssssssssss" - "ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss" - "ssssssssssssssssssssssssssssssssssssssssssssssssss" Non-match examples: - "effsgrgrsfefsv54543534544 FKR$>%>??W?EK#$Krkdk3oror" - "qwertyghbn"
[ "ssssssssss wwwwwwwwwwwsssssssssssssssssss", "ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss", "ssssssssssssssssssssssssssssssssssssssssssssssssss", "sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss", "ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss", "sssssssssssssssssssssssssssssssssssss", "ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss", "sssssssssssssssssssssssssssss", "ssssssssssssssssssssssssssssssss", "sssssssssssssssssssssssssssssssssssss", "ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss", "sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss", "sssssssssssssssssssssssssssssssss" ]
[ "effsgrgrsfefsv54543534544 FKR$>%>??W?EK#$Krkdk3oror", "qwertyghbn", "kjiuyt65re4rft", "ytfyuykghiu6757rty", "njihgyt67", "dftyguio", "s", "huytr54er5ty78u9", "hiugou", "wuhqipaxz", "ewuhpiru32p9swd", "rhfpier" ]
4,043
([ing]){3}$
Matching any word that ends with "ing" Link to my GitHub: https://github.com/StoddardSpencer96
Matches the "ing" in any word that ends with "ing" Match examples: - "Reading Playing Comforting Crying" - "ing" Non-match examples: - "Readings Listenings Playful Comfort" - "hi"
[ "Reading Playing Comforting Crying", "ing" ]
[ "Readings Listenings Playful Comfort", "hi", "hello", "this", "Played", "Ran", "Run", "Moved", "Test", "Listen", "threw", "cooler" ]
4,044
((=)[A-F0-9]{2}){3}
Using this Regex for finding spam in RAW email this is Case sensitive HEX only CAPITAL A-F and numbers 0-9
Matches 2 character HEX values between = Match examples: - "=EF=BB=BF" - "=E2=9C=80" - "=E2=9D=A4" Non-match examples: - "e2 9d a4" - "ABCXYZ"
[ "=EF=BB=BF", "=E2=9C=80", "=E2=9D=A4", "=38=B9=30", "=23=5E=00", "=47=7B=35", "=5B=12=88", "=32=C1=B5", "=59=B4=97", "=65=FF=02", "=C6=8D=79", "=D8=E4=96", "=B6=B4=DF" ]
[ "e2 9d a4", "ABCXYZ", "f0=9f=aa=81", "324r", "#DHWGDDWJNJ", "=", "equal", "21343re", "#HHDI3", "====", "DHDIE", "DDUEY72" ]
4,051
\b[0-9]{2}([0][1-9]{1}|[1][0-2]{1})([0][1-9]{1}|[1][0-9]{1}|[2][0-9]{1}|[3][0-1]{1})\d{5}
The PESEL number is an identification number given to every Polish citizen when they are born and registered in Poland.
Matches the PESEL number which is an identification number given to every Polish citizen when they are born and registered in Poland. Match examples: - "11083197485" - "36110878229" - "00063172200" Non-match examples: - "1F083297485" - "36204578229"
[ "11083197485", "36110878229", "00063172200", "12110383138", "71111127030", "35103085264", "85061017201", "39012627489", "32021861783", "67080861679", "59031023643", "39063110747", "67101809495" ]
[ "1F083297485", "36204578229", "AA06317220B", "12203383138", "23131", "2343dsd", "GDU&*", "PESEL", "hefeiwefh342", "2121", "#3", "3e2hr3f" ]
4,067
^((0[1-9])|(1[0-2]))[\/\.\-]*((2[0-9])|(3[0-9]))$
valid years 2020 to 2039
Matches dates with years from 2020-2039 Match examples: - "12/20" - "12/39" - "05-25" Non-match examples: - "12/40" - "23/02"
[ "12/20", "12/39", "05-25", "11//./--/-//.--./-/.-/.....-.-/..---/-../...-/--...23", "11././/31", "12////..//-.-.-..--/---..-/--/-/..-//.---29", "05-..-/../--//---/...//-..-36", "1021", "11-.///-./-../.--./-//-/.......///.././/-././-../.-/--/-/----.-.//--/--//-27", "10---/-/.-//37", "12.-./.--.--/...//-.-.-//.-.//../-/.-/-//33", "11///./-/-/-/-.-../-.-./-.../-.//--.-.--.//..-./../-/-/-/.-/-/-/29", "08/../../..---.../-.//../-///../------//-///..-./-.31" ]
[ "12/40", "23/02", "15-25", "1//", "12/12", "12/43", "1/2030", "12121212", "$45", "12-12", "july 4 2020", "#3" ]
4,072
^((?!.*(00000|11111|22222|33333|44444|55555|66666|77777|88888|99999))[0-9]{5,10})
In example for some input number in case random digits not repeat number 5 number in 5-10 digits in pattern.
Matches strings of numbers of the length of at least 5, but can not have more than 4 5's consecutively Match examples: - "0000110000" - "000010010" - "158114223" Non-match examples: - "00000" - "1122000009"
[ "0000110000", "000010010", "158114223", "113254", "081892", "027060", "1770189269", "408498", "42098", "01332", "85644", "019843", "33594" ]
[ "00000", "1122000009", "3242", "12", "#3", "$45", "23%", "12/12", "3323", "23", "124&&&&", "<32" ]
4,086
(?!BG|GB|KN|NK|NT|TN|ZZ)[A-CEGHJ-PR-TW-Z][A-CEGHJ-NPR-TW-Z][0-9]{6}[A-D]
UK NI number. ensured that the suffix is always a single character of A-D (as these are the only values currently supported by HMRC). Created 2021
Matches UK National Insurance number. The suffix needs to be a single character of A-D (as these are the only values currently supported by HMRC). Match examples: - "XY123456D" - "AH587561C" - "CZ106648B" Non-match examples: - "XY123456E" - "23456"
[ "XY123456D", "AH587561C", "CZ106648B", "LJ185856D", "BA615520D", "OM968321A", "OG314869B", "BX184126A", "ML279103A", "SA876126C", "CT466022B", "KX637827A", "GL065214A" ]
[ "XY123456E", "23456", "sdfgh", "34rd3434f3", "#3", "number", "e34532", "dj343232f", "E323rj23!!!", "34njffW", "334jdfwe", "wjeirja" ]
4,107