Regex Tester
Test and debug regular expressions with real-time matching
Common Patterns
API commands for this page
Run these examples from a terminal. Replace sample values and add your bearer token where required.
Test a regular expression
curl -q -LSsf -X POST -H 'Content-Type: application/json' --data-raw '{"pattern":"hello","text":"hello world"}' 'https://api.casjay.coffee/api/v1/tools/regex/test'
Replace matches
curl -q -LSsf -X POST -H 'Content-Type: application/json' --data-raw '{"pattern":"world","text":"hello world","replacement":"there"}' 'https://api.casjay.coffee/api/v1/tools/regex/replace'