Pattern: Url
Description for pattern 1
ttheIntuitionist3/26/2025
Patterns
Regular Expressions
^(http|https)://[a-zA-Z0-9-.]+.[a-zA-Z]{2,3}(/.*)?$
ttheIntuitionist3/28/2025
Matching Strings
Matches? | Text | Description | Author |
---|---|---|---|
http://example.com | basic http root level url | ttheIntuitionist | |
https://subdomain.example.com/path | subdomain with path | ttheIntuitionist | |
https://subdomain.example.com/path/longer_path | with subdomain and longer path | ttheIntuitionist | |
http://.fred | this regex is not foolproof! | ttheIntuitionist |
Non-matching Strings
Matches? | Text | Description | Author |
---|---|---|---|
mailto:somebody@google.com | this mailto address is actually a valid url, but this regex is for basic web addresses only | ttheIntuitionist |
^(http|https)://[a-zA-Z0-9-.]+.[a-zA-Z]{2,3}(/S*)?$
ttheIntuitionist3/26/2025