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 3
Title Test Details RFC2822 Compliant Email Address
Expression
^(?i:(?<local_part>[a-z0-9!#$%^&*{}'`+=-_|/?]+(?:\.[a-z0-9!#$%^&*{}'`+=-_|/?]+)*)@(?<labels>[a-z0-9]+\z?.*[a-z0-9-_]+)*(?<tld>\.[a-z0-9]{2,}))$
Description
RFC2822 compliant. Includes all special characters, except for allowance of quoted local-part. Also disallows '.' (period) to be at the front or end of local-part, or occurr more than once consecutively. It does allow for optional infinite number of sub-domains. The following standards are not enforced, due to RegExp limitations (unable to check for group string length): As per RFC2821 the local-part may have a maximum length of 64 characters, while the domain name may have a maximum length of 255 characters. Each domain label must be between 1 and 63 characters long, while the total length of the domain name may not exceed 255 characters.
Matches
Non-Matches
Author Rating: The rating for this expression. Mike Bronner
Title Test Details RFC Compliant URI
Expression
^([A-Za-z0-9]+[A-Za-z0-9-_]*\.)*(([A-Za-z0-9]+[A-Za-z0-9-_]*){3,}\.)+([A-Za-z0-9]{2,4}\.?)+)$
Description
RFC compliant. Disallows '.' (period) to be at the front or end, or occurr more than once consecutively. It does allow for optional infinite number of sub-domains. However, the total length of the URI has not been enforced: each label must be between 1 and 63 characters long, while the total length of the domain name may not exceed 255 characters. Note that this RegEx does not check the validity of the protocol.
Matches
mine.com|me.mine.com
Non-Matches
com|me..com|me.com|me..mine.com|.mine.com
Author Rating: Not yet rated. Mike Bronner
Title Test Details Integer with 1000s Separator
Expression
^[1-9]{1}[0-9]{0,2}([\.\,]?[0-9]{3})*$
Description
Matches whole numbers with the two most common thousands-separators (comma and period). Will not handle decimals.
Matches
1,000|1.000|1|10|100|1000
Non-Matches
1,00|1,0|1,,000|.1|10.
Author Rating: Not yet rated. Mike Bronner
   Displaying page 1 of 1 pages; Items 1 to 3

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