Regex Cheatsheet - Regular Expression Quick Reference

Quick reference for regular expression patterns. Character classes, quantifiers, anchors, and common patterns.

Share
Back to Regex Cheatsheet

URL Pattern

Common Pattern

Match HTTP/HTTPS URL format

Pattern

^https?:\/\/[^\s\/$.?#]+\.[^\s]*$

Syntax

Explanation

Matches full URL with protocol, domain, and path. Supports http and https.

Recommended Flags

/pattern/i

Examples

https://www.example.com/path?q=1

Complete URL

Matches: https://www.example.com/path?q=1

http://localhost:3000/api

Localhost URL

Matches: http://localhost:3000/api

Related Tools

More Text Tools