Displaying page
of
pages;
Items to
Title |
Test
Details
Continuous Spaces
|
Expression |
(\s{1,}) |
Description |
Matches all chars that are made up of one or more spaces. I found this useful when people were trying to make string length bypasses using consecutive spaces. |
Matches |
(one or more spaces) |
Non-Matches |
non-space |
Author |
Rating:
Not yet rated.
Robert Gonzalez
|
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:
Mike Bronner
|
Title |
Test
Details
Validate string prefix
|
Expression |
^([a-zA-Z]{5})([a-zA-Z0-9-]{3,12}) |
Description |
Validate: First five characters are letters; characters six-17 are letters, numbers, or hyphen; string length is eight characters minimum, 17 characters maximum |
Matches |
ABCDE123abc-123AB |
Non-Matches |
1BCDE123abc-123AB -BCDE123abc-123AB ABCDE6789012345678 |
Author |
Rating:
greg askew
|
Title |
Test
Details
International & Domestic Phone Numbers with Ext
|
Expression |
^([\+][0-9]{1,3}([ \.\-])?)?([\(]{1}[0-9]{3}[\)])?([0-9A-Z \.\-]{1,32})((x|ext|extension)?[0-9]{1,4}?)$ |
Description |
Somewhat conservative expression for evaluating phone numbers. Based off ideas found at http://stackoverflow.com/questions/123559/a-comprehensive-regex-for-phone-number-validation this allows country codes, with or without the + symbol, area codes surrounded by parenthesis (or not) and numbers delimited by spaces, periods or dashes. You'll want to independently test for string length based on your needs. |
Matches |
(123)456-7890 | (123)456-7890 x123 | +1 (123)456-7890 | 12 3456 789 0 x1234 | (123)456-7890x123 |(123)456-7890ext123 | (123)456-7890 extension123 | 123.456.7890 | 1234567890 | 1234567 | 12 34 56 78 90 | 12 3 4567 890123 x4567 | +12 3456 7890 | +12 34 56 7890 | +12 3456 7890 | +12 34567890 |
Non-Matches |
(123)456-7890 x 123 | 123.45.6.78+90 |
Author |
Rating:
Not yet rated.
Brent Thomas
|
Displaying page
of
pages;
Items to