Home – For more random stuff
Source Blog
REGEXWORKS is a regular expression test lab. Blog. ({{ demoText }}) Clear All

Here's what you do:

  1. Paste in some input text to work with.
  2. Choose how to break your input up. The default is by lines, but you can use a custom delimiter.
  3. Add regular expressions to filter and transform the input chunks.
  4. View the processed output, and debug using the detailed breakdown below.

Here's some demo setups you can try out:

REGEXES
+
#{{ $index + 1 }}
x

Regex
Replacement
INPUT
OUTPUT
Split on:
DEBUG OUTPUT
Legend:
Line Regex: #{{ $index + 1 }} In Output
{{ line.text }}