Test, debug, and generate code for regular expressions in real-time.
const regex = //gu;
const text = "";
// Test if matches
const hasMatch = regex.test(text);
// Find all matches
const matches = text.matchAll(regex);
// Replace
const replaced = text.replace(regex, 'replacement');.\w\W\d\D\s\S[abc][^abc][a-z]^$\b\B*+?*?+?{n}{n,}{n,m}(abc)(?<name>abc)(?:abc)(?=abc)(?!abc)(?<=abc)(?<!abc)\1\n\t\r\.\\|Find all matches rather than stopping after the first match
Match both uppercase and lowercase letters
^ and $ match start/end of each line, not just the string
Allows . to match newline characters
Treat pattern and string as Unicode sequences
Match only from the lastIndex position