Switching language reloads this page. Copy or save any inputs and results first.
15 / DATA
Regex tester
Try patterns and inspect matches.
Preview as you type
53 charsUTF-8 · Up to 200,000 characters
Inputs and results are processed only in this browser and are not saved.
How to use, examples and questions
Apply JavaScript regular expressions to text and inspect matched strings, positions and capture groups. Useful for trying extraction patterns.
Regex tester — how to use
Enter a pattern without enclosing slashes.
Enter flags and test text. The g flag is always applied to find all matches.
Review matches and positions. If the time limit is reached, shorten the pattern or input.
Input and output examples
Extract numbers from text
Settings: Pattern: \d+ / flags: g
Input
order-12
order-345
Output
12
345
Frequently asked questions
Is this the same as PHP or Python regex?
It runs JavaScript regular expressions. Supported syntax and behavior may differ from other languages' engines, so also check in your target environment.
What happens with slow processing or many matches?
Slow processing stops after 0.5 seconds. Limits: 20,000 input characters, 500 pattern characters and 500 displayed matches. Positions are zero-based UTF-16 code units.
Specifications and limits
Supports i / m / s / u / g flags. Always applies g to find all matches. Match positions are zero-based UTF-16 code units. Runs in a dedicated worker and stops slow operations. Input limit: 20,000 characters; pattern limit: 500 characters.
Analytics and privacy
Conversion inputs and results are processed in your browser. Image URL and OGP loads connect directly to your chosen destination only when you select the corresponding button. Image, video, Markdown, HTML, CSV and TSV files are not uploaded to our servers. Self-signed certificates and signatures are generated locally; private keys are never sent to our servers or analytics. Markdown external images and HTML scripts are not loaded. The API client sends the URL, headers, body and selected files directly to the endpoint only when you select Send or its shortcut. Speed tests exchange generated test data with Cloudflare when you start a measurement. These destinations receive your IP address. We do not proxy these connections or send inputs or measurement results to analytics. Conversions are not saved automatically. Unsaved API inputs, responses, history and environments stay only in this page. Only API requests explicitly selected with Save in this browser are stored. Auth fields, secret variables, known auth headers and files are excluded; review URLs, bodies and custom headers for other secrets first. Collection exports include URLs and bodies, so review them before sharing.
When analytics is enabled, we use Google Analytics 4 to measure pages, tool names and use counts, actions such as copying or saving an image, speed test starts, completion, cancellation and errors, product link clicks, and monitoring guide and service clicks using fixed IDs. Google uses cookies and collects device and browser information. Google signals for advertising and ad personalization are disabled.
Disabling analytics stores only that preference in this browser. Analytics settings never contain your inputs.Google's privacy policy