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.
Enter input or load the sample to start.
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.
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.