online toolsby kmmr.jp Explore all 36 tools
online tools

Regular Expression Tester

Try patterns for extracting values from logs or preview replacements before applying them. Enter the pattern without surrounding slash delimiters.

Input is processed in this browser and is not sent to the server or saved by this tool.

Input

Results

Enter input or load the sample to start.

Results (JSON)

How to use

Enter a pattern, flags, test text and replacement. g finds all matches, i ignores case, m enables line anchors, s lets dot match newlines, u enables Unicode and y enables sticky matching.

Understanding the results

index is a zero-based UTF-16 offset. groups contains captures and named contains named captures. Replacements support $1 and $<name>. JavaScript behavior can differ from other regex engines. Limits: 2,000 pattern characters, 100,000 text characters and 1,000 matches. Processing stops after about one second.

Related tool and specification

URL Parser · ECMAScript — RegExp

If you found this tool helpful, we’d love for you to share it on social media!


We display ads to support the operation of this site. We understand that it may be inconvenient, but we appreciate your understanding.