Regex Cheatsheet - Regular Expression Quick Reference

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

Share
Back to Regex Cheatsheet

Unicode Flag u

Flag

Enable full Unicode matching support

Pattern

/pattern/u

Syntax

Explanation

u flag enables Unicode code point matching and Unicode property escapes \p{...}

Examples

/\u{1F600}/u

Match 😀 emoji

Matches: 😀

/\p{Script=Han}/u

Match Chinese characters

Matches: 中文

Related Tools

More Text Tools