Javascript Regex Playground

by 2rye

how to play

  1. Type some javascript regular expression in the regex input box. You don't need to add leading and trailing slashes. That's done on the automatic.
  2. Add modifiers if you like. i for case-insensitive, m to match across newlines, g for "global" matching. Check out this page for details on modifiers.
  3. Type a sample string to match against in the other box.
  4. Check out the resulting matches.
  5. Repeat steps 1-3 until you've figured out the right regular expression.

links