User Tools

Site Tools


regex:url

Regex - URL

To ensure URL starts with HTTP/HTTPS

https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)

If you do not require HTTP protocol:

[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)

regex/url.txt · Last modified: 2025/05/27 07:40 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki