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

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 5
Title Test Details Belgian License Plate
Expression
^[A-Z]-\d{3}(?>\d|-[A-Z])$|^[A-Z]{2,3}-\d{3}$|^\d{3}-[A-Z]{3}$
Description
Matches all 5 formats for Belgian cars. Only hyphens will match as separators between groups
Matches
452-FGH | DAG-175 | KJ-398 | W-9485 | J-154-L
Non-Matches
456FGK | 456 FGK | 36-KTR
Author Rating: The rating for this expression. Christof Verhoeven
Title Test Details Dutch License Plate
Expression
^(?>[A-Z]{2}|\d\d)-(?>[A-Z]{2}|\d\d)-(?<!\d\d-\d\d-)\d\d$|^(?>[A-Z]{2}|\d\d)-(?>[A-Z]{2}|\d\d)-(?<![A-Z]{2}-[A-Z]{2}-)[A-Z]{2}$|^\d\d-[A-Z]{3}-\d$
Description
Matches all 7 side code formats for cars. Only hyphens will match as separators between groups
Matches
78-TR-55 | 42-GFZ-1 | DF-GH-12 | 27-AD-HD | 99-24-TT | JK-13-LM | TR-11-12
Non-Matches
BG-FA-KL | 17-28-79 | BC VA 13 | BG12LJ
Author Rating: The rating for this expression. Christof Verhoeven
Title Test Details Date (dd-mm-yy[yy])
Expression
^[0-3]{1}(?(?<=3)[01]{1}|\d)([-.\/]{1})[01]{1}(?(?<=1)[0-2]{1}|\d)\1(\d{2}|\d{4})$
Description
Limits days to 31 and months to 12. Hyphen, dot and slash are valid separators and have to be consistent.
Matches
31-02-2009 | 17.06.3005 | 05/03/98
Non-Matches
22-14-2010 | 16/05-2004 | 36.10.94 | 5-4-3000
Author Rating: Not yet rated. Christof Verhoeven
Title Test Details E-mail validation
Expression
^(?:[^@<>;:,.()\s\[\]\\]+(?:\.(?!@))?)+@(?:[\w\-]+(?:\.(?!\.))?)+\.[A-Za-z]{2,6}$
Description
Email validation intended for javascript: use of lookahead ('.' not followed by '@') instead of lookbehind ('@' not preceded by '.'). It doesn't allow ip addresses.
Matches
[email protected], ?_9+3=12!/[email protected], çèré&pâtükõ@far-away.net
Non-Matches
Author Rating: Not yet rated. Christof Verhoeven
   Displaying page 1 of 1 pages; Items 1 to 5

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