Fork me on GitHub

Javascript Regex Playground

by rcode5

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.
Inspired by: Rubular, a Ruby regular expression editor
social icons from Creative Commons License
github icon from Jack Hackett