Home
– For more random stuff
Tweet
Source
Blog
REGEXWORKS
is a regular expression test lab.
Blog
.
(
{{ demoText }}
)
Clear All
Here's what you do:
Paste in some input text to work with.
Choose how to break your input up. The default is by lines, but you can use a custom delimiter.
Add regular expressions to filter and transform the input chunks.
View the processed output, and debug using the detailed breakdown below.
Here's some demo setups you can try out:
Demo 1
– Typical 'foo' and 'bar' example.
Demo 2
– Hamlet's most famous soliloquy.
REGEXES
+
#{{ $index + 1 }}
Enabled
←
→
x
Match
Replace
Case sensitive
Global replace
Regex
Replacement
INPUT
OUTPUT
Split on:
Newlines
Custom regex:
DEBUG OUTPUT
Legend:
Regex matched/did not match string
Regex transformed/did not transform string
Line is/isn't in output
Regex is disabled
Line
Regex:
#{{ $index + 1 }}
In Output
{{ line.text }}