πŸ”
⛏️

Extract Data with Regex

Build and test patterns to extract structured data from unstructured text, HTML, or markdown.

Nid oes angen mewngofnodi
//g
Flags:
Examples:

Test text

Matches

The quick brown fox jumps over the lazy dog. Pack my box with five dozen liquor jugs.Enter a pattern above to see matches highlighted here.

Data Extraction tips

⛏️

Extract all email addresses, phone numbers, prices, or dates from a block of text by building a global-flag pattern and testing it here first.

πŸ’‘

Capture groups let you extract specific parts of a match. ([\w.-]+)@([\w.-]+) captures username and domain separately in groups 1 and 2.

πŸ”

The match details panel shows every match with its position and captured groups β€” exactly what you'd get from JavaScript's match() or Python's findall().

🌟

Enable the "s" (dotall) flag to make . match newlines too β€” essential when extracting content that spans multiple lines.

Sut Mae'n Gweithio

1
Ewch i mewn
Enter your data into the tool above. Everything stays local to your browser.
2
Proses
The tool processes your data instantly in your browser using JavaScript. No server, no waiting.
3
Lawrlwythwch
Get your result instantly. Nothing is stored after you leave the page β€” complete privacy.

Pam defnyddio ein un ni?

βœ“Hollol rhad ac am ddim - dim costau cudd, byth
βœ“Nid oes angen cyfrif, e-bost na mewngofnodi
βœ“Nid yw ffeiliau byth yn gadael eich dyfais
βœ“Dim cyfyngiadau maint ffeil o gwbl
βœ“Dim dyfrnodau ar unrhyw allbwn

Also check out…

Cwestiynau Cyffredin