Regex Cheatsheet - Regular Expression Quick Reference

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

Share
Back to Regex Cheatsheet

Hex String Pattern

Common Pattern

Match hexadecimal string

Pattern

^[0-9A-Fa-f]+$

Examples

FF5733

Color hex value

Matches: FF5733

0a1b2c

Hex string

Matches: 0a1b2c

Related Tools

More Text Tools