RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Advanced Search

Keywords

Category

Minimum Rating

Results per Page

Search Results: 256 regular expressions found.

Change page:   |    Displaying page 13 of 13 pages; Items 241 to 256
Title Test Details Pension Scheme Tax Reference
Expression
^[0-9]{8}R[A-HJ-NP-TV-Z]$
Description
Pension Schemes have their own references, 8 digits followed by R and then another letter.
Matches
12345678RA | 43213245RT
Non-Matches
1234567RA | 432132456RR
Author Rating: Not yet rated. PJWhitfield
Title Test Details UK Tax Code
Expression
(0T|NT|BR|D[01]|[1-9][0-9]{0,6}([WM]1)?|K[1-9][0-9]{0,6}
Description
All UK tax code combinations, 5 standard code 0T, BR, NT, D0 or D1 and 2 types of codes involving digits and a letter. (also includes optional W1 or M1 indicator)
Matches
D0 | BR | 1060LW1 | K400
Non-Matches
D2 | BT | 1060W | 400K
Author Rating: Not yet rated. PJWhitfield
Title Test Details French Vehicle Registrations (SIV)
Expression
^(?=.*[1-9].*)((?!SS)[AHJ-NPR-UW-Z]{2})\-[0-9]{3}\-[AHJ-NPR-UW-Z]{2}$
Description
Format AA-999-AA First 2 chars cannot be combination SS, while 000 is not allowed as the digits. Chars I,O,Q and V are not allowed.
Matches
AA-123-AA | BW-001-EW | AR-934-WWW
Non-Matches
AA-000-AA | BQ-001-EW | IS-045-AA
Author Rating: The rating for this expression. PJWhitfield
Title Test Details Italian Registration Plates
Expression
^[AHJ-NPR-UW-Z]{2}\s?[0-9]{3}\s?[AHJ-NPR-UW-Z]{2}$
Description
Almost identical to French except no hyphens (optional space) and digits 000 are allowed. s in French no letters I,O,Q or V AA999AA
Matches
AA999AA | AA 123 AB | WA756AC
Non-Matches
AI999AA | AQ 123 AB
Author Rating: Not yet rated. PJWhitfield
Title Test Details CAS Registry Number
Expression
^[1-9][0-9]{1,6}\-[0-9]{2}\-[0-9]
Description
Other examples of this show there being upto 6 digits at the start however according to the official website, it should be 7 https://www.cas.org/content/chemical-substances/faqs
Matches
506-64-9 | 1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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]+[\$@!%\*\?&`~\^\\(\)\[\]\{\}<>,\._#-]+)+$
Description
Password with lower, upper case letters, digits and special characters in any order
Matches
#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#
Non-Matches
#$@! | aB3a | zzzz | BBBB | 1234
Author Rating: Not yet rated. Ahmed Magdy
Title Test Details Date With Slashes
Expression
^\d{1,2}\/\d{1,2}\/\d{4}$
Description
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
Matches
4/1/2001 | 12/12/2001 | 55/5/3434
Non-Matches
1/1/01 | 12 Jan 01 | 1-1-2001
Author Rating: Not yet rated. Khushbu Reddy
Title Test Details Social Security Number (SSN)
Expression
(?!219( |\.|\-|)??09( |\.|\-|)??9999|078( |\.|\-|)??05( |\.|\-|)??1120)(?!666|000|9\d{2})\d{3}( |\.|\-|)??(?!00)\d{2}( |\.|\-|)??(?!0{4})\d{4}
Description
Advanced SSN regular expression. Matches 9 digits separated by mixed spaces, hyphens, or periods. Excludes: - Values containing all 0's in any group - Values beginning with 900-999 - 078-05-1120 (Woolworth's Wallet) - Values beginning with 666 Guidelines can be seen at: https://www.ssa.gov/kc/SSAFactSheet--IssuingSSNs.pdf
Matches
001-23-1123 | 377.42.1423 | 389551234 | 389 55.1234
Non-Matches
078051120 | 900 20 2211 | 389.00.4411
Author Rating: Not yet rated. Aaron Guilmette
Title Test Details Cron Schedule
Expression
^((?:\*)|(?:[0-5]?[0-9])|(?:(?:(?:[0-5]?[0-9])-(?:[0-5]?[0-9]))(?:,(?:(?:[0-5]?[0-9])-(?:[0-5]?[0-9])))*)|(?:(?:[0-5]?[0-9])(?:,(?:[0-5]?[0-9]))*))\s+((?:\*)|(?:[0-9]|0[0-9]|1[0-9]|2[0-3])|(?:(?:(?:[0-9]|0[0-9]|1[0-9]|2[0-3])-(?:[0-9]|0[0-9]|1[0-9]|2[0-3]))(?:,(?:(?:[0-9]|0[0-9]|1[0-9]|2[0-3])-(?:[0-9]|0[0-9]|1[0-9]|2[0-3])))*)|(?:(?:[0-9]|0[0-9]|1[0-9]|2[0-3])(?:,(?:[0-9]|0[0-9]|1[0-9]|2[0-3]))*))\s+((?:\*)|(?:[1-9]|0[1-9]|1[0-9]|2[0-9]|3[0-1])|(?:(?:(?:[1-9]|0[1-9]|1[0-9]|2[0-9]|3[0-1])-(?:[1-9]|0[1-9]|1[0-9]|2[0-9]|3[0-1]))(?:,(?:(?:[1-9]|0[1-9]|1[0-9]|2[0-9]|3[0-1])-(?:[1-9]|0[1-9]|1[0-9]|2[0-9]|3[0-1])))*)|(?:(?:[1-9]|0[1-9]|1[0-9]|2[0-9]|3[0-1])(?:,(?:[1-9]|0[1-9]|1[0-9]|2[0-9]|3[0-1]))*))\s+((?:\*)|(?:[1-9]|0[1-9]|1[0-2])|(?:(?:(?:[1-9]|0[1-9]|1[0-2])-(?:[1-9]|0[1-9]|1[0-2]))(?:,(?:(?:[1-9]|0[1-9]|1[0-2])-(?:[1-9]|0[1-9]|1[0-2])))*)|(?:(?:[1-9]|0[1-9]|1[0-2])(?:,(?:[1-9]|0[1-9]|1[0-2]))*)|(?:\*)|(?:jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)|(?:(?:(?:jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)-(?:jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec))(?:,(?:(?:jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)-(?:jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)))*)|(?:(?:jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)(?:,(?:jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec))*))\s+((?:\*)|(?:[0-6]|0[0-6])|(?:(?:(?:[0-6]|0[0-6])-(?:[0-6]|0[0-6]))(?:,(?:(?:[0-6]|0[0-6])-(?:[0-6]|0[0-6])))*)|(?:(?:[0-6]|0[0-6])(?:,(?:[0-6]|0[0-6]))*)|(?:\*)|(?:sun|mon|tue|wed|thu|fri|sat)|(?:(?:(?:sun|mon|tue|wed|thu|fri|sat)-(?:sun|mon|tue|wed|thu|fri|sat))(?:,(?:(?:sun|mon|tue|wed|thu|fri|sat)-(?:sun|mon|tue|wed|thu|fri|sat)))*)|(?:(?:sun|mon|tue|wed|thu|fri|sat)(?:,(?:sun|mon|tue|wed|thu|fri|sat))*))$
Description
Validates a cron schedule. Supports: - single values (zero-padded or not) - comma-separated lists of values (e.g. '2,14,17') - value ranges (e.g. '4-10') - list of ranges (e.g. '1-3,5-7') - days of the week and months specified as digits or strings (e.g. 'mon-tues', 'feb', '07', '3') Does not support non-standard formats: - step values (e.g. '5/2') - @yearly, @annually, @monthly etc - Sunday specified as '7' (instead of '0') - 6th field (year) Capturing groups: 1: minute 2: hour 3: day of the month 4: month 5: day of the week
Matches
15,45 4-5 2 feb * | 00 06,08 * * mon,wed | 00 * * 4 02 | 00 * * 4 mon-tue,thu-fri
Non-Matches
***** | 0 1 3 * * * | 0 1 * * 7 | 60 * * * * | * 24 * * * | * * 32 * * | * * 0 * * | * * * 13 * | * * * 0 * | * * * * mon-tue-wed | * * * jan-feb-mar * | * * * jan-fed *
Author Rating: Not yet rated. Graham McCulloch
Title Test Details Egyption Mobile Numbers
Expression
^01[0125]{1}[0-9]{8}
Description
- 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
01022685544 - 01122685544 - 01222685544 - 01522685544
Non-Matches
+0201622685544 - 01322685544 - 01422685544 - 01622685544 - 01722685544 - 01822685544 - 01922685544
Author Rating: The rating for this expression. Mahmoud Ahmed Badawy
Title Test Details Algerian Mobile Number (mobile phone algeria)
Expression
^[0][5-7]\d{2}(?:(\s|-|\/))?\d{2}(?:(\s|-|\/))?\d{2}(?:(\s|-|\/))?\d{2}$
Description
Algerian Mobile : 1-Starts With 0 2-Between 5 & 7 The rest can be filled with 8 digits with or without spaces or dashes, I even added slashes, grouped 2 by 2 Total of digits (without spaces/dashes/slashes) must be 10.
Matches
0696 22 13 23
Non-Matches
02252525225
Author Rating: Not yet rated. ROCHDI BOUDJEHEM
Title Test Details Italian phone number
Expression
^(?<countryCode>((\+)39)[ ]?)?\(?(?<areaCode>0\d{2,3})\)?[ \-]?(?<centralOfficeCode>\d{3})[ \-]?(?<lineNumber>\d{3,4})$
Description
This regex matches all landline phone numbers in Italy. I have assigned a name to each group so that you can extract the groups, concatenate them and check whether or not the string is made of 10 characters. I have trid to achieve this goal with lookahead and lookbacks but those methods could be deceived by phone numbers with more than 10 characters becuase of the brackets, the blank spaces and the dashes. Then I tought that this was the best solution. Here's an example php script to validate a phone number: $phoneNumber = [Your phone number]; $regex = "/^(?<countryCode>((\+)39)[ ]?)?\(?(?<areaCode>0\d{2,3})\)?[ \-]?(?<centralOfficeCode>\d{3})[ \-]?(?<lineNumber>\d{3,4})$/"; //I make sure that the string matches the regex if(preg_match($regex, $phoneNumber)){ /*The string matches the regex, now i have to make sure the phone number is made by 10 characters. */ preg_match($regex, $phoneNumber, $matches); if(strlen($matches["areaCode"].$matches["centralOfficeCode"].$matches["lineNumber"]) == 10){ echo "Valid phone number"; } else { echo "Invalid phone number"; } } else { echo "Invalid phone number"; } PS: If all the digit are not separated by blank spaces or dashes the areaCode group will be made by 4 digits but the script works the same.
Matches
+39 0801231234 | +390121231234 | 0341231234 | +39 056-1231234 | +39099-1231234 | 080-1231234 | +39 080-123-1234 | +39080-123-1234 | 080-123-1234 | +39 080 123 1234 | +39080 123 1234 | 080 123 1234 | +39 (080)-123-1234 | +39(080)-123-1234 | (080)-123-1234 | +39 0123-123124 | +390123-123123 | 0123-123123 | +39 0123-123-123 | +390123-123-123 | 0123-123-123 | +39 0123 123 123 | +390123 123 123 | 0123 123 123 | +39 (0123)-123-123 | +39(0123)-123-123
Non-Matches
+39 01234-123124 | +390123-(123)123 | 0123-123(123) | +40 0123-123-123 | +410123-123-123 | 012-1234-123 | +39 01234 123 123 | +390123 123 12453
Author Rating: Not yet rated. Gabriele Colapinto
Title Test Details Estonia phone
Expression
(^[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}$)
Description
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
300 3000|300-3000|3003000
Non-Matches
3000 3000 | 9000 9000 9000
Author Rating: The rating for this expression. Sylvie
Title Test Details Not repeat number 5 digits
Expression
^((?!.*(00000|11111|22222|33333|44444|55555|66666|77777|88888|99999))[0-9]{5,10})
Description
In example for some input number in case random digits not repeat number 5 number in 5-10 digits in pattern.
Matches
0000110000 | 000010010
Non-Matches
00000 | 1122000009
Author Rating: Not yet rated. Suppakrit Prasopchok
Title Test Details Not sort number 5 digits
Expression
^((?!.*(01234|12345|23456|34567|45678|56789))[0-9]{5,10})
Description
In example for some input number in case random digits not sort number 5 number in 5-10 digits in pattern.
Matches
000111222 | 111222333
Non-Matches
0000123400 | 1112345
Author Rating: Not yet rated. Suppakrit Prasopchok
Title Test Details Indian PAN
Expression
([A-Za-z]{3})([pchabgjlftPCHABGJLFT])([a-zA-Z])([0-9]{4})([A-Za-z]{1})
Description
1. 3 generic Alphabets 2. 1 specific alphabet 3. 1 generic alphabet 4. 4 digits 5. 1 generic alphabet (alphabets: small or capital)
Matches
AABCL5045N
Non-Matches
AABXL5045N
Author Rating: The rating for this expression. Pankaj Jain
Change page:   |    Displaying page 13 of 13 pages; Items 241 to 256

Copyright © 2001-2024, RegexAdvice.com | ASP.NET Tutorials