Regex Cheatsheet - Regular Expression Quick Reference

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

Share
Back to Regex Cheatsheet

Multiline Flag m

Flag

Multiline mode - ^ and $ match start/end of each line

Pattern

/pattern/m

Examples

/^\w+/gm

Match word at start of each line

Matches: hello world

Related Tools

More Text Tools