Enter, if you DARE

Where Regex Gone Wild in Javascript will drive you MAD

Warning: what you're about to embark on is a journey of discovery, of experimentation, of regex-induced madness. Are you prepared to face the abyss of backtracking, the terror of capturing groups, the despair of negative lookaheads? If so, then by all means, proceed with caution.

Read more about the horrors

Subsections:

  // import the horrors
  let re = new RegExp(
    // the regex engine is a monster, it's a monster, I tell you
    "(^.*$)"
  );
  // the horrors of capturing groups
  console.log(re.exec("hello world"));