Back
Syntax
Study
Editor
Mode:
HTML
CSS
JavaScript
PHP
Reset
Run »
HTML / CSS / JS
/^hello/ // Must start with "hello" /world$/ // Must end with "world" /^hello world$/ // Exact full match // Word boundary /\bcat\b/ // Matches "cat" but not "catch" or "scat" /\bcat\b/.test("the cat sat"); // true /\bcat\b/.test("catch"); // false // Multiline mode changes ^ and $ behavior /^\d+$/m // ^ and $ match line starts/ends
Result
Open