/&.*$/RegExpedia

Pattern: Url

Description for pattern 1

ttheIntuitionist3/26/2025

Regular Expressions

^(http|https)://[a-zA-Z0-9-.]+.[a-zA-Z]{2,3}(/.*)?$

ttheIntuitionist3/28/2025

Matching Strings

Matches?TextDescriptionAuthor
http://example.combasic http root level urlttheIntuitionist
https://subdomain.example.com/pathsubdomain with pathttheIntuitionist
https://subdomain.example.com/path/longer_pathwith subdomain and longer pathttheIntuitionist
http://.fredthis regex is not foolproof!ttheIntuitionist

Non-matching Strings

Matches?TextDescriptionAuthor
mailto:somebody@google.comthis mailto address is actually a valid url, but this regex is for basic web addresses onlyttheIntuitionist

^(http|https)://[a-zA-Z0-9-.]+.[a-zA-Z]{2,3}(/S*)?$

ttheIntuitionist3/26/2025