Regex Cheatsheet - Regular Expression Quick Reference

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

Share
Back to Regex Cheatsheet

Sticky Flag y

Flag

Sticky match - matches exactly at lastIndex position

Pattern

/pattern/y

Syntax

Explanation

y flag requires match to start exactly at lastIndex position.

Examples

/\d+/y

Match consecutive digits from position

Matches: 123

Related Patterns

Related Tools

More Text Tools