- What regex syntax does this tester support?
- It uses JavaScript's native RegExp engine, supporting all standard regex syntax including character classes, quantifiers, lookaheads, lookbehinds (ES2018+), named capture groups, and Unicode property escapes.
- What regex flags are available?
- All JavaScript regex flags: g (global — find all matches), i (case-insensitive), m (multiline — ^ and $ match line boundaries), s (dotAll — . matches newlines), u (unicode), and y (sticky).
- How do I test capture groups?
- Add parentheses in your pattern to create capture groups. The tool displays all captured values with their group numbers. For named groups, use (?<name>pattern) syntax and the tool shows the group names.
- Can I test regex replacement patterns?
- Yes. Enter a replacement string using $1, $2 backreferences for captured groups, or $& for the full match. The tool shows the replacement result in real time.
- Can I use this as a Ruby regex test tool?
- Yes. Most standard regex patterns work the same in Ruby and JavaScript — character classes, quantifiers, anchors, and groups are cross-compatible. This regex check online tool is ideal for testing Ruby regex patterns. Note that Ruby-specific features like \p{Hiragana} or (?<name>) named groups have slightly different syntax.
- Will my regex work the same in Python or Java?
- Regex syntax varies between languages. This tester uses JavaScript regex. Most basic patterns work cross-language, but features like lookbehinds, named groups, and flags may differ in Python, Java, Ruby, or Go.
- Is this regex tester free?
- Yes. Completely free, runs locally in your browser, and has no limits on pattern testing or registration requirements.
- Is this a Ruby regex tester?
- It tests JavaScript regex by default (the regex engine that powers Node.js, web browsers, and most online editors). Ruby regex (Oniguruma engine) is mostly compatible — the same patterns for character classes, quantifiers, anchors, and alternation work in both. The main Ruby-specific extras the JS engine doesn't natively support are named captures with /(?<name>pattern)/ syntax (works in modern JS too), POSIX character classes [:alpha:], and Ruby-only flags like /m for multiline-anything (in Ruby /m means 'dot matches newline', in JS the same flag means 'multiline anchors'). For Ruby-exclusive features, test patterns in irb or rubular.com after prototyping here.
- What's the difference between JavaScript, Ruby, PCRE, and Python regex?
- All four are descendants of Perl-compatible regex with mostly overlapping syntax. JavaScript regex is the smallest set (no named captures historically, no lookbehind until ES2018, no \K reset). Ruby uses Oniguruma which adds Unicode property classes \p{...}, advanced quantifiers, and named captures. PCRE (used in PHP, nginx, R) is the most feature-complete — recursive patterns, conditionals, backreferences. Python's re module sits between PCRE and JS. For maximum portability, stick to the common subset: basic character classes, quantifiers, anchors, and alternation.
- How do I test a regex online?
- Paste your pattern in the regex field above and your test string in the input field. Matches are highlighted in real time. You can toggle flags (g for global, i for case-insensitive, m for multiline, s for dotall, u for unicode, y for sticky). For step-through debugging, regex101.com shows match-by-match execution; this tool focuses on quick verification.