Glowing Web Network
Glowing Web Network

Live
Regex Tester

Test JavaScript regular expressions instantly in your browser. Match highlighting, capture groups, replacement preview, and quick reference for every flag. Nothing leaves your machine.

100% client-side • No registration • Works offline

See also: XPath Tester · CSS Selector Tester

What is a Regex?

A regular expression (regex) is a compact pattern language for finding, validating, and extracting text. Every modern language ships a regex engine — but writing patterns blind is painful, and a wrong character class can silently break production.

This tester evaluates your pattern with the same JavaScript regex engine your browser and Node.js use. You'll see every match, every capture group, and any replacement as you type — no compile step, no server roundtrip.

Common uses: parsing scraped HTML, validating user input, building extraction rules for Scrappey scrapers, writing log filters, and replacing structured strings at scale.

Regex Tester Visual

Test Your Regex

Type a pattern and a test string — matches update in real time

//
3 matches
#1index 17–37
#2index 41–60
#3index 66–85

Quick Reference

The patterns you'll reach for most often

Character classes

.
Any character except newline (or any with /s flag)
\d
Digit (0-9)
\D
Non-digit
\w
Word character (A-Z, a-z, 0-9, _)
\W
Non-word character
\s
Whitespace (space, tab, newline)
\S
Non-whitespace
[abc]
Any of a, b, or c
[^abc]
None of a, b, or c
[a-z]
Range a through z

Anchors & boundaries

^
Start of string (or line with /m)
$
End of string (or line with /m)
\b
Word boundary
\B
Non-word boundary

Quantifiers

*
0 or more (greedy)
+
1 or more (greedy)
?
0 or 1
{n}
Exactly n
{n,}
n or more
{n,m}
Between n and m
*?
Lazy variant (e.g. .*? — shortest match)

Groups

(abc)
Capture group
(?:abc)
Non-capturing group
(?<name>abc)
Named capture group
\1
Backreference to group 1
(a|b)
a or b

Lookaround

(?=abc)
Positive lookahead
(?!abc)
Negative lookahead
(?<=abc)
Positive lookbehind
(?<!abc)
Negative lookbehind

Replacement syntax

amp;
Whole match
$1, $2
Capture group 1, 2, ...
lt;name>
Named capture group
$
A literal $
Scrappey: Web Data Access API | Start Building Now
Text before the match
#39;
Text after the match

Use Your Regex on Real Web Data

Scrappey returns clean HTML, JSON, or Markdown from any URL — pipe it straight into the patterns you tested here.

Get 150 Free Credits

Why Use Scrappey's Regex Tester?

Built for developers who scrape, parse, and validate

Real-Time Matching

Every keystroke recompiles the regex and updates matches, highlights, and replacements instantly.

100% Client-Side

Nothing is sent to a server. Test patterns against proprietary data without leaving your browser.

Full JS Regex Engine

Same engine your code uses in production — lookbehind, named groups, unicode property escapes, all of it.

Replacement Preview

See the result of String.prototype.replace with $1, amp;, and lt;name> substitutions side by side.

Built-In Cheat Sheet

Quick reference for character classes, anchors, quantifiers, groups, and lookaround — no tab switching.

Export to Code

Copy ready-to-paste snippets for JavaScript, Python, and PHP using your current pattern and flags.

Use Your Regex in Code

Drop the tested pattern into your scraper or parser

// Test your regex in any JS runtime (browser, Node.js, Deno)
const re = /\b\w+@\w+\.\w+\b/g;
const text = "Send invoices to [email protected] or [email protected] — cc [email protected].";

// Get every match
const matches = [...text.matchAll(re)].map(m => m[0]);
console.log(matches);

// Replace
const replaced = text.replace(re, "[REPLACEMENT]");
console.log(replaced);

Perfect For

Scraping Extraction Rules

Prototype patterns for extracting emails, prices, IDs, or dates from scraped HTML before wiring them into a scraper.

Input Validation

Write and verify validators for emails, URLs, phone numbers, UUIDs, and structured IDs before shipping.

Log Parsing

Build patterns that pull timestamps, levels, IPs, and request paths out of application or access logs.

Bulk Find-and-Replace

Refactor strings, normalize content, or transform CSV/JSON snippets with confidence before running it at scale.

footer-frame

Start building with Scrappey

Try It For Free. No Subscription Required. No Credit Card Required. Instant Set-Up. 150 Free Requests Are Waiting For You!

Frequently asked questions

What is Scrappey.com?

Scrappey.com is a web scraping API that handles all the complex aspects of web scraping, such as handling dynamic content, rotating proxies, advanced request handling, headless browsers, and verification processing. It offers an all-in-one solution for extracting publicly available data from websites.

How does Scrappey.com work?

Scrappey.com provides a web scraping API that allows you to send requests to extract publicly available data from websites. It handles dynamic content and modern website complexity, including rotating proxies, advanced request handling, and verification processing. You can easily extract publicly available data from websites using their built-in features like headless browsers and AI-powered data extraction.

Can I customize the proxies used for scraping?

Yes, with Scrappey.com, you have the option to use Sticky Rotating Proxies for seamless scraping. Alternatively, you can also set your own proxies if desired.

Is there a free trial available?

Yes, Scrappey.com offers a free trial where you can try it out without a subscription or credit card. Instant setup is provided, and you get 150 free scrapes to explore the capabilities of the platform.

What happens if a request fails?

We only charge for successful requests. Failed requests are not counted towards your usage, so you only pay for what works.

I need to scroll or click on a button on the page I want to scrape

No problem, you can pass any JavaScript snippet that needs to be executed by using our JavaScript scenario parameter. This allows you to interact with dynamic content, scroll pages, click buttons, wait for elements, and perform any custom JavaScript actions before extracting the data.

What is the pricing structure for Scrappey.com?

Scrappey.com offers simple and transparent pricing: €0.20 per 1,000 direct HTTP requests and €1.00 per 1,000 full-browser requests. Residential proxies are included on both tiers — no separate proxy billing, no hidden fees, no complicated pricing tiers. You only pay for successful requests.

Are there any usage restrictions or limitations?

Scrappey.com provides scalable access for extracting publicly available data. Whether you need to extract data from a few pages or a large dataset of publicly accessible content, you can do so with flexible usage options. Please note that Scrappey.com only supports scraping publicly available data, and users must comply with applicable laws and website terms of service.

What support channels are available?

Scrappey.com provides various support channels for assistance. You can refer to their documentation, frequently asked questions section, blog, and uptime status page. Additionally, you can get in touch with them via email or join their Discord community for further support.

I'm not a developer, can you create custom scraping scripts for me?

We don't create custom scraping scripts, however we will gladly write some code snippets helping you to use our most powerful features: AI-powered data extraction and JavaScript scenario. Our documentation includes examples in multiple programming languages to get you started quickly.

What is a request and how are they counted?

Each API call to Scrappey counts as one request. Our pricing is based on successful requests. By default, JavaScript rendering is enabled, which allows you to extract data from modern websites with dynamic content. All features including proxies, CAPTCHA solving, and advanced web access handling are included in each request.

How fast is Scrappey's API and what if a site is hard to scrape?

Scrappey's API is optimized for fast response time, even when dealing with complex or protected websites. If other scrapers struggle with sites that have advanced security measures, Scrappey is designed to handle these challenges efficiently, ensuring reliable data retrieval. Our advanced web access handling, residential proxies, and intelligent retry logic work together to maximize success rates.