Code Bits
Regex Playground
Test regular expressions with live highlighting. See matches instantly and learn pattern syntax.
//
Common Patterns:
Contact us at support@example.com or sales@company.org
Visit https://www.example.com or http://api.test.io/v2/users
Call us: (555) 123-4567 or 555.987.6543
Server IPs: 192.168.1.1 and 10.0.0.255
Colors: #ff5733, #3498db, #2ecc71, #fff
Important dates: 2024-01-15, 2024-12-25, 2025-06-30
Match Details
support@example.comindex: 14sales@company.orgindex: 37Pattern Explanation
[a-zA-Z0-9._%+-]· Any character in this set+· One or more of previous[a-zA-Z0-9.-]· Any character in this set\.· Escaped "."[a-zA-Z]· Any character in this set{2,}· Specific quantityFlags Reference
g· Global (find all matches)i· Case insensitivem· Multiline modes· Dotall (. matches newline)u· Unicode supporty· Sticky (match from lastIndex)