- Enter a regex pattern in the
Pattern field.
- Select the regex flags you want to apply (for example
g for global matches).
- Paste or type the text to test in
Input Text.
- Optionally provide a
Replacement value to preview replacements.
- Click
Run Regex to view:
- Highlighted matches in the input text.
- Match list with index positions and capture groups.
- Replacement preview output.
Regex Flags
g (global): finds all matches, not just the first.
i (ignore case): matches letters regardless of uppercase/lowercase.
m (multiline): makes ^ and $ work per line.
s (dotAll): allows . to match newlines.
u (unicode): enables Unicode-aware matching behavior.
y (sticky): next match must begin exactly where the previous one ended.
Note: Matching behavior follows JavaScript regular expression syntax.