Instructions ยท Regex Tester

  1. Open the HTML file in a modern browser. Review Security Check and select Continue.
  2. Type or paste test text, select a local UTF-8 file, or select Open Sample.
  3. Enter a raw JavaScript pattern without slash wrappers. Choose the flags you want. Global matching is selected by default.
  4. Select Test Pattern. To stop an active test, select Cancel. Editing the pattern, flags or text clears the previous result.
  5. Review offsets and select a match number to inspect captures. Select Download JSON for the retained full values.

Raw JavaScript regular expressions with up to 4,096 UTF-16 code units, on text up to 2,097,152 code units. Matching uses a cancellable worker with a two-second deadline.