Regex Tester
Test and debug regular expressions with real-time matching
//
Matches (0)
About Regular Expressions
Flags: g (global), i (case-insensitive), m (multiline), s (dotAll), u (unicode), y (sticky)
Common Patterns: \\w+ (word characters), \\d+ (digits), [a-z]+ (letters), .* (any character)
Groups: Use parentheses () to create capture groups for extracting specific parts of matches.
Anchors: ^ (start), $ (end), \\b (word boundary) help position your pattern.
How to use the Regex Tester
- Enter your regular expression and choose its flags.
- Paste sample text to test against.
- Matches are highlighted as you type, so you can adjust the pattern until it behaves.
Frequently asked questions
- Which regex flavour does this use?
- It runs your pattern with your browser’s JavaScript regular expression engine, so results match what you would get in JavaScript code.
- What do the g, i and m flags do?
- g finds all matches instead of just the first, i ignores letter case, and m lets ^ and $ match at the start and end of each line.
- Is my data uploaded anywhere?
- No. This tool runs entirely in your browser, so what you type or paste stays on your device and is not sent to Devity.
More free tools
JSON FormatterFree online JSON formatter and validator. Beautify JSON, catch syntax errors, and view structured data with syntax highlighting in your browser.Base64 ConverterFree Base64 encoder and decoder online. Encode text or small files to Base64 and decode Base64 strings instantly—no install required.URL Encoder/DecoderFree URL encoder and decoder for developers. Percent-encode query strings, decode encoded URLs, and handle reserved characters safely.Color PickerFree online color picker for web and UI design. Copy hex, RGB, and HSL values, build palettes, and match colors for CSS and mockups.SQL FormatterFree SQL formatter and beautifier online. Pretty-print SELECT and DDL statements, add indentation, and read complex queries more easily.Markdown EditorFree online Markdown editor with live preview. Write READMEs, docs, and notes with split view and export when you are finished.Hash GeneratorFree online hash generator for MD5, SHA-1, SHA-256, and more. Hash text or files for checksums, API debugging, and security workflows.Timestamp ConverterUnix timestamp converter online. Turn epoch seconds into local dates, compare time zones, and debug APIs that use ISO-8601 or Unix time.