Back
Syntax
Study
Editor
Mode:
HTML
CSS
JavaScript
PHP
Reset
Run »
HTML / CSS / JS
/cat/g // g: find all matches /cat/i // i: case-insensitive /cat/gi // combine flags // m: ^ and $ match line boundaries /^\w+/gm // First word of each line // s: dot matches newlines /start.end/s.test("start end"); // true // u: full Unicode support /\p{Emoji}/u.test("😀"); // true (Unicode property) /^\p{L}+$/u.test("café"); // true (unicode letters)
Result
Open