No Login Data Private Local Save

Unicode Property Regex Tester - Online \p{Script=Greek}

6
0
0
0

Unicode Property Regex Tester

Quickly test JavaScript regular expressions with Unicode property escapes like \p{Script=Greek} or \p{Emoji}. Full u/v flag support.

Regular Expression
/ /
Flags:
Test String
About Unicode Property Escapes

Unicode property escapes allow you to match characters based on their Unicode properties. For example, \p{Script=Greek} matches any character from the Greek script, \p{Emoji} matches emoji characters, and \p{Lu} matches uppercase letters. They are supported in modern JavaScript environments and require the u or v flag.

This tool helps you build and test such expressions interactively, ensuring correct results across multiple matches.

Frequently Asked Questions

They are special sequences like \p{Property=Value} that match characters belonging to a specific Unicode category, script, or property. For instance, \p{Script=Latin} matches any character from the Latin script.

The JavaScript engine requires the u (unicode) or the newer v (unicodeSets) flag to recognise \p{...} and \P{...} syntax. Without it, you’ll get a SyntaxError.

Both enable Unicode property escapes. The v flag additionally supports set notation (difference/subtraction, intersection) and was introduced in ES2024. For most \p{} usage, u is sufficient.

All modern browsers (Chrome, Firefox, Safari, Edge) support \p{...} with the u flag. The v flag is supported in recent versions (Chrome 112+, Firefox 116+, Safari 17+).

Yes! \p{Emoji} matches any character with the Emoji property. Use \p{Emoji_Presentation} to match only emoji that default to text presentation (like emojis with variation selectors).

The capital P negates the property. For example, \P{Script=Common} matches any character that does not belong to the Common script.

Use \p{Script=Greek} or its short form \p{sc=Greek}. For extended Greek with Coptic, you might combine scripts with [\p{Script=Greek}\p{Script=Coptic}].

Ensure you are using the u flag and that your JavaScript environment supports the specific Unicode property. This tool runs directly in your browser, so if it works here, it will work in similar modern browsers.