Home › Text and code tools › Regex tester (regular expressions)
Regex tester (regular expressions)
Test a regular expression on your text: every match, group and replacement, explained. Free, instant, no sign-up.
- Paste Your text.
- Type the Regular expression, for example
\d+for numbers. - Optional: type Replace with to see the text after a replace.
- Press Test regex: you see every match and its groups.
- Paste Your text.
- Type the Regular expression, for example
\d+for numbers. - Optional: type Replace with to see the text after a replace.
- Press Test regex: you see every match and its groups.
💡 Simple guide · no technical skills needed
When do I need this?
You write a regular expression (a search pattern) for code, Excel, Google Sheets or a find-and-replace and want to see what it really matches before you use it.
Good to know
- Characters like . ( ) ? + * have special meaning: put a \ before them to search for the character itself.
- Tick Ignore capital letters if Anna and anna should both match.
Words explained
- Excel
- A spreadsheet program (tables with rows and columns). Google Sheets and LibreOffice open the same files.
Stuck? Press Help in the bottom corner and write your question in any language. You get an answer in seconds, or a real person answers you.
More free tools
Text and code tools
For text and code: count words, change capital letters, remove repeats, tidy JSON, make passwords, encode or compare text.
PDF tools
For when you have a PDF: join, cut, shrink, turn pages, or get the text and tables out of it.
Images
For photos and pictures: make them smaller, change the size or type, or copy the text in them.
Excel, CSV and lists
For Excel and lists: clean up, join, split, convert or compare them.
Invoices, banking and VAT
For invoices, bank account numbers (IBAN), VAT numbers and bank upload files.
Websites and e-mail
For your website and e-mail: find problems and get the fix in plain words.
Products, customs and cars
For sending goods abroad (customs codes) and checking used cars.
QR codes and barcodes
Make a QR code (link, Wi-Fi, payment) or a barcode in one click.
Live rates and data
Today's numbers from official sources. Nothing to upload, just read.
Calculators
For everyday sums: percent, loans, VAT, working days, dates, ages, units and time zones.
Audio and video
For your own video and sound files: get the MP3, make a GIF, cut, shrink or change the format.