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: 4128 regular expressions found.

Change page:   |    Displaying page 166 of 207 pages; Items 3301 to 3320
Title Test Details IPv6
Expression
^([0-9a-f]{0,4}:){2,7}(:|[0-9a-f]{1,4})$
Description
Matches compressed and uncompressed IPv6.
Matches
2001:db8:abc:1400:: | :: | 0000::
Non-Matches
: | 0000: | 5678::
Author Rating: Not yet rated. Peter Kahl
Title Test Details DateTime
Expression
^(\d{4}-((0[1-9]|1[012])-(0[1-9]|1\d|2[0-8])|(0[13456789]|1[012])-(29|30)|(0[13578]|1[02])-31)|(\d{2}[02468][048]|[13579][26])-02-29) (0[0-9]|1[0-9]|2[0-4]):(60|[0-5][0-9]):(60|[0-5][0-9])$
Description
This pattern allows for full DateTime entry using yyyy-MM-dd hh:mm:ss format.
Matches
2014-08-07 16:52:14 | 2004-02-29 00:00:59 | 1800-01-01 23:31:59
Non-Matches
2014-08-07 25:52:14 | 2004-02-30 00:00:59 | 1800-30-01 23:31:59
Author Rating: Not yet rated. Paul Delannoy
Title Test Details Match Python/JavaScript strings
Expression
([\"']).*?[^\\]\1
Description
Matches strings in source code for languages that allow string to be single- or double-quoted.
Matches
It's called "Montezuma's revenge" | "string with a \"string\" in it" | Two 'quotes' on a single "line"
Non-Matches
Mom's cooking | " | "improperly closed string'
Author Rating: Not yet rated. Tyler Durkota
Title Test Details Remove broken HEX and HTML entities
Expression
/&(?!\w+;|#\d+;)\S*/g
Description
Removes invalid or broken HEX and HTML entities from string. These will not be matched since they are valid: € € These will be matched since they are invalid entities: & &eu &; &# &#83 Especially handy in case a string is being manipulated using e.g. substring, which may break entities in either the beginning or end of the string. One might consider using ^ and $ to make it match only beginning and/or end of string. http://regex101.com/r/pM9dE5/16
Matches
& | &eu | &; | &# | &#83
Non-Matches
€ | €
Author Rating: Not yet rated. Jimmy
Title Test Details Microsoft telephone/phone number format
Expression
^((\+[1-9]{1}[0-9]{0,3})?\s?(\([1-9]{1}[0-9]{0,3}\)))?\s?(\b\d{1,9}\b)$
Description
Microsoft telephone number format: +AAAA (BBBB) CCCCCCCCC
Matches
+44 (123) 456789 , (123) 456789 , 456789
Non-Matches
+44 456789 , +44 123) 456789 , 44 (123) 456789 , +44 (123)
Author Rating: The rating for this expression. Ehsan Khakifirooz
Title Test Details Danish phone number
Expression
((^\d{8})|(^\d{2}[ ]\d{2}[ ]\d{2}[ ]\d{2})|(^\d{4}[ ]\d{4}))$
Description
A Danish phone number can be written in three ways (if you don't include the country code +45). Either one block of 8 digits or two blocks of four digits or four blocks of two digits.
Matches
12345678 | 1234 5678 | 12 34 56 78
Non-Matches
123 456 78 | 12 3456 78 | 1 23 45 67 8 | 55 ab 66 xy
Author Rating: The rating for this expression. Liza Overgaard
Title Test Details Currency validation
Expression
^(?!0\d)([0-9]{1,}(,[0-9]{2}))$
Description
No leading zeroes. Must have 2 digits after the decimal comma ','
Matches
0,00 | 12,34 | 2014,08
Non-Matches
00,00 | 12 | 12,3 |12,345 | 08,20
Author Rating: The rating for this expression. Alexander Ivanov
Title Test Details Address Pattern
Expression
^[ \w\.]{3,}([A-Za-z]\.)?([ \w]*\##\d+)?(\r\n| )[ \w]{3,},\x20([A-Z]{2}\.)\x20\d{5}(-\d{4})?$
Description
The original pattern was: ^[ \w]{3,}([A-Za-z]\.)?([ \w]*\#\d+)?(\r\n| )[ \w]{3,},\x20[A-Za-z]{2}\x20\d{5}(-\d{4})?$ I changed the regular expression to allow a few different options. I like what you created here, but wanted to change the pattern to only allow for the capitol letters with an ending period after the state. I also thought it would be nice to allow the expression to show the possible option of direction with for example North, South, East or West with an ending period at the end of it. ^[ \w\.]{3,}([A-Za-z]\.)?([ \w]*\##\d+)?(\r\n| )[ \w]{3,},\x20([A-Z]{2}\.)\x20\d{5}(-\d{4})?$ Although the code was not altered much, it reflects the changes I find necessary for my needs.
Matches
123 Anywhere Dr. apt #99 Somewhere, ST 55789 | 123 Anywhere Dr. Somewhere, ST 55789 | 123 Anywhere D | 1234 W. Anywhere St. City, IN. 12345
Non-Matches
123 Anywhere Drive #99 Somewhere, ST 55789 - 1234 | 123 Anywhere Dr. apt. #99 Somewhere, ST 55789
Author Rating: Not yet rated. ljdwefdsyroqwj
Title Test Details Extract value range from text comment
Expression
(((?<numb1>[\d\.-]+)([\s]*?)(?<oper1>(\>=|\<=|=\>|=\<|\<|\>|=){1})([\s]*?)){0,1})(?<varname>(salary|mph|kph|ph){1})((([\s]*?)(?<oper2>(\>=|\<=|=\>|=\<|\<|\>|=){1})([\s]*?)(?<numb2>[\d\.-]+)){0,1})
Description
Extract a variable name and range from text containing expressions like: "car travelling 30 < mph < 80" or "acid solution pH < 3" or "net income 40000<salary<=60000" or "executive salary > 120000". Recognises comparisons before and or after the variable name. Tolerates white space between elements. Recognises =, <, <=, =<, >, >=, =< comparison symbols. LIMITATIONS: * Intended to extract information for a limited number of variable names from text that has not been diligently formatted. * Numeric value portions of the pattern could be refined. * Add/change variable names (mph, ph etc) to match your requirements. * When editing varname list put longer names first to avoid confusion between ph and mph (for example mph will be returned as ph if ph is listed first in the pattern).
Matches
30<mph<60 | 3<PH | pH < 3 | 40000<salary<=60000
Non-Matches
30<speed<60| ph 3 to 5 | salary over 120000| income>60000
Author Rating: The rating for this expression. chum bucket
Title Test Details Hot Key Windows
Expression
^(((Ctrl\+Shift\+Alt\+|Ctrl\+Shift\+|Ctrl\+Alt\+|Shift\+Alt\+|Ctrl\+|Alt\+){1}(F1[0-2]|F[1-9]|[A-Za-z0-9\-\=\[\]\\\;\'\,\.\/]){1}){1}|(Shift\+)?(F1[0-2]|F[1-9]){1})$
Description
Hot key combinations for Windows. Has some restrictions and limitations, can probably be improved.
Matches
Ctrl+Alt+K, Shift+F10
Non-Matches
Ctrl+Ctrl+K, Shift+K, AnyKey
Author Rating: Not yet rated. Mike Summitt
Title Test Details Hot Key Mac
Expression
^(((Ctrl\+Alt\+Shift\+Cmd\+|Ctrl\+Shift\+Cmd\+|Ctrl\+Alt\+Shift\+|Ctrl\+Alt\+Cmd\+|Alt\+Shift\+Cmd\+|Shift\+Cmd\+|Ctrl\+Shift\+|Ctrl\+Cmd\+|Ctrl\+Alt\+|Alt\+Shift\+|Alt\+Cmd\+|Cmd\+|Alt\+)(F1[0-2]|F[1-9]|[A-Za-z0-9\-\=\[\]\\\;\'\,\.\/]))|(Shift\+)?(F1[0-2]|F[1-9]))$
Description
Hot key combinations for Mac. Has some limitations and restrictions, could probably be improved.
Matches
Cmd+R, F9, Shift+F7, Ctrl+Alt+K
Non-Matches
R, Shift+4, Ctrl+Ctrl+T
Author Rating: Not yet rated. Mike Summitt
Title Test Details Russian Phone Validate
Expression
^((8|\+7)[\- ]?)?(\(?\d{3}\)?[\- ]?)?[\d\- ]{7,10}$
Description
Focused on the Russian mobile + city code of 3 digits (eg, Russia). +79261234567 89261234567 79261234567 +7 926 123 45 67 8(926)123-45-67 123-45-67 9261234567 79261234567 (495)1234567 (495) 123 45 67 89261234567 8-926-123-45-67 8 927 1234 234 8 927 12 12 888 8 927 12 555 12 8 927 123 8 123
Matches
+79261234567 | 8(926)123-45-67 | +7 926 123 45 67
Non-Matches
+9 000 000 00 00
Author Rating: Not yet rated. Nick Pinevich
Title Test Details Turkish Phones
Expression
(([\+]90?)|([0]?))([ ]?)((\([0-9]{3}\))|([0-9]{3}))([ ]?)([0-9]{3})(\s*[\-]?)([0-9]{2})(\s*[\-]?)([0-9]{2})
Description
Can be used for Turkey phone styles.
Matches
0(216) 472 15 30 | +90(216) 6721530 | 03126751530
Non-Matches
(0312)8721530 | 0312 872 15.30
Author Rating: The rating for this expression. Tuncay BAŞ
Title Test Details parts of an address
Expression
^ (?<FullStreet> (?<Detail>(?:C/[-O]?[a-z\ ]*?)?\ *)? (?<POBox>P[\.\ ]?O[\.\ ]?\ ?Box\ *\d+) | (?:(?<Detail>(?:C/[-O]?)?[\w\ ,\.']+?),?/?\ *?)? \ *?\b(?<StreetNum>(?:\d+-)?\d+[a-z]?)[\ ] (?<StreetFullName> (?<StreetName>(?:[\w\ '-]|st)+) (?:\b(?<StreetType>ALLEY|ALLY|APPROACH|APP|ARCADE|ARC|AVENUE|AVE|BOULEVARD|BLVD|BROW|BYPASS|BYPA|CAUSEWAY|CWAY|CIRCUIT|CCT|CIRCUS|CIRC|CLOSE|CL|COPSE|CPSE|CORNER|CNR|COVE|COURT|CRT|CT|CRESCENT|CRES|DRIVE|DR|END|ESPLANANDE|ESP|FLAT|FREEWAY|FWAY|FRONTAGE|FRNT|GARDENS|GDNS|GLADE|GLD|GLEN|GREEN|GRN|GROVE|GR|HEIGHTS|HTS|HIGHWAY|HWY|LANE|LINK|LOOP|MALL|MEWS|PACKET|PCKT|PARADE|PDE|PARK|PARKWAY|PKWY|PLACE|PL|PROMENADE|PROM|RESERVE|RES|RIDGE|RDGE|RISE|ROAD|RD|ROW|SQUARE|SQ|STREET|ST|STRIP|STRP|TARN|TERRACE|TCE|THOROUGHFARE|TFRE|TRACK|TRAC|TRUNKWAY|TWAY|VIEW|VISTA|VSTA|WALK|WAY|WALKWAY|WWAY|YARD )\b) ) ) (?:,?\ *?(?<Town>[a-z'.]+(?:,?\ +[a-z'.]+)*?))? (?:,?\ *?(?<State>Victoria|VIC|New South Wales|NSW|South Australia|SA|Northern Territory|NT|West Australia|WA|Tasmania|TAS|Australian Capital Territory|ACT|Queensland|QLD))? (?:,?\ *?(?<PostalCode>\d{3,4}))? (?:,?\ *?(?<Country>Au(?:stralia)?))? (?:(?=[^$])\s)* $
Description
Divides a single line address into detail, street number, street name , street type, town, postcode, state, country. designed for Australian addresses but can be modified. switches: ignore expression whitespace, case insensitive. teseted using silverlight tester from regexlib. based on regex by Zijian http://regexlib.com/REDetails.aspx?regexp_id=1964
Matches
Shop S1, Sussex Centre, 401 Sussex St, Sydney; 28 Lidco Street, Arndell Park, Sydney 2148; Level 1, 198 Elizabeth St, Surry Hills 2010; Room 2, Level 1, 198 Elizabeth St, Surry Hills, NSW 2010; 541 Pittwater Rd, Brookvale 2100; 2 Maniangi Court, Macedon, 3440; PO Box 1531, Keveland, QLD 4163; St Lucia Golf Links, 22 St George St, St Lucia, QLD; PO Box 1531, St Lucia, QLD 4163;
Non-Matches
M/S 1014 Bell 4408; Kingswood Hostel Ramsay Street Toowoomba 4350; 15osborne Court Logan Holme 4129; Miamba Condamine 4416; Crows Nest Nursing Home Crows Nest 4352; 30 Skyline Drive M/S 617 Toowoomba Mail 4352; M/S 1945 Peranga 4352; 22a Wirra Wirra Toowoomba 4350; C/- Blue Care, Stenner Street Toowoomba 4350; Carline' M/S 848 Warwick 4370; 336 Oakey-Biddeston Rd, Ms 212 Oakey 4401; Kingswood Hostel Ramsay Toowoomba 4350; Shalom N/H - Rosalie & Lockyer Toowoomba 4350; Unit 2 Glenfield Grange,110 Spring Stree Toowoomba 4350; Villa 65 Westhaven Retirement Village Toowoomba 4350; Y
Author Rating: The rating for this expression. v
Title Test Details Date Matching Regex
Expression
^\d?\d([./-])\d?\d\1(?:\d\d|\d{4})$
Description
Here's a super simple one for checking dates written numerically, MM/DD/YYYY. Separators can be "/", "-", or "." and must be the same. Because of it's simplicity it will allow dates that don't exist but that doesn't matter if you're looking for a basic date format checker and like to keep it simple.
Matches
1/2/14 | 01-02-2014 | 1.20.14
Non-Matches
1/2/014 | 1-2.2014 | Jan.2, 2014
Author Rating: Not yet rated. tedcambron
Title Test Details All Country Phone number regular expression
Expression
^\+?\d{2}|\0(?:\-?|\ ?)(?:\([2-9]\d{2}\)\ ?|[2-9]\d{2}(?:\-?|\ ?))[2-9]\d{2}[- ]?\d{4}$
Description
This regular expression validates all country phone number formats with country code, plus(+) sign, allowed brackets('(', ')'), dots(.), dashes(-). Plus (+) and country code is optional. Above expression allows alphabetical characters. To prevent alphabetical characters first check with this expression /^[^a-z]+$/i then check the main expression.
Matches
+91 999 888 7777, 999 888 7777, 9998887777, +91 (999) 888 7777, (999) 888-7777 | 999-888-7777
Non-Matches
Doesn't allow alphabetic characters | 0010011212 | 1991991212 | 123) not-good
Author Rating: The rating for this expression. Ankur Raiyani
Title Test Details Another Date Matching Regex
Expression
^([a-yA-Y]{3,4}(?:\.?|[a-yA-Y]{1,6}?)\s?\d?\d(?:[d-tD-T]{2})?\,?\s?(?:\'?\d\d|\d{4}))$
Description
This will match things resembling a written date. It will match dates written incorrectly of course but this cute and funny date matching regex is for the beauty of the simplicity in checking the many ways to write a date.
Matches
Jan. 1, 2014 | January 1, '14 | JAN 1ST 2014
Non-Matches
this is not a date | 123 isn't either | neither is this!
Author Rating: Not yet rated. tedcambron
Title Test Details XML Injection Regex
Expression
([a-zA-Z0-9\\-\\$\\s\\.#@%^*(){}|:;,?+=/]*[<>'\"!&\\[\\]]+((\\s|)CDATA(\\s|))*[a-zA-Z0-9<>'\"!&\\[\\]\\-\\$\\s\\.#@%^*(){}|:;,?+=/]*)+
Description
This regex will detect XML Injection in the input built around CDATA. So if the input is something like, <![CDATA[ / ]]> - this regex will detect and return true
Matches
<![CDATA[ / ]]> | a<![CDATA[ / ]]> | a <![CDATA[ / ]]> | ]]> | <![CDATA[/]]> | 1<![CDATA[ / ]]> | abc<![CDATA[ / ]]> | 123<![CDATA[ / ]]> | 123 <![CDATA[ / ]]> | <![CDATA[<script>alert('hi');</script>]]> | <![CDATA[a]]> | A<![CDATA[ / ]]> | A <![CDATA[ / ]]> | ABC<![CDATA[ / ]]> | ABC <![CDATA[ / ]]> | ABC123<![CDATA[ / ]]> | ABC123 <![CDATA[ / ]]> | ABC123 <![CDATA[123]]> | <![CDATA[ / ]]>13 | FABC-FIXED-25<![CDATA[ / ]]> | <![CDATA[ / ]]>ABC-FIXED-25 | ';dfsdfd | ] CDATA ! | < ! [ CDATA [ / ] ] > | TEST CENTER 30/7 ]]> | ]]>asd=ads | ]]>CITY TEST MAX 30=7 TEST
Non-Matches
asd | 123 | 1000000.1 | asd asd | ASD ASD ASD ASD ASD | 123 123 123 ASD 123 | 123.33 | asd=ads
Author Rating: The rating for this expression. Sakthi Sivram
Title Test Details European VAT-Numbers
Expression
^[A-Z]{2,4}[0-9][A-Z0-9]+$
Description
Matches European VAT-Numbers
Matches
ATU99999999|BE0999999999|BG999999999|BG9999999999|CY99999999L|CZ99999999|CZ999999999|CZ9999999999|DE999999999|DK99999999|EE999999999|EL999999999|ESX9999999X|FI99999999|FRXX999999999|GB999999999|GB999999999999|GBGD999|GBHA999|HR99999999999|HU99999999|IE9S99999L|IE9999999LL|IT99999999999|LT999999999|LT999999999999|LU99999999|LV99999999999|MT99999999|NL999999999B99|PL9999999999|PT999999999|RO999999999|SE999999999999|SI99999999|SK9999999999|
Non-Matches
ATUABCDEFG|FIFIFI123|SKOOO123
Author Rating: Not yet rated. Bernhard
Title Test Details Indonesian Tax Number
Expression
(?!000)[0-9]{1,3}(.(?!000)[0-9]{3}(-(?!00)[0-9]{2}(.(?!00000000)[0-9]{8})))
Description
Indonesian tax number format
Matches
123.123-12.12345678
Non-Matches
000.000-00.00000000 | 12.123-12.12345678 | 123.12-12.12345678 | 123.123-1.12345678 | 123.123-12.1234567
Author Rating: Not yet rated. Hadi Wijaya
Change page:   |    Displaying page 166 of 207 pages; Items 3301 to 3320

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