Regex Tester & Generator

Test regular expressions with real-time matching, capture groups, and common pattern snippets

Regular Expression

//g

Test Text

Live Results

Ready to test

Ready to test

Enter a regex pattern and test text to see results.

Common Regex Patterns

Email Validation

Validates email addresses

^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9....

Example: user@example.com

Phone Number (US)

Matches US phone numbers

^\(?([0-9]{3})\)?[-. ]?([0-9]{...

Example: (555) 123-4567

URL Validation

Matches HTTP/HTTPS URLs

https?:\/\/(www\.)?[-a-zA-Z0-9...

Example: https://www.example.com

Extract Numbers

Extracts all numbers

\d+

Example: Price: $25.99

Credit Card

Validates major credit card formats

^(?:4[0-9]{12}(?:[0-9]{3})?|5[...

Example: 4532015112830366

IPv4 Address

Validates IPv4 addresses

^(?:(?:25[0-5]|2[0-4][0-9]|[01...

Example: 192.168.1.1

Hex Color

Matches hex color codes

^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{...

Example: #FF5733

Date (YYYY-MM-DD)

Matches ISO date format

^\d{4}-\d{2}-\d{2}$

Example: 2024-12-25

Regex Guide

Common Symbols

  • . - Any character
  • * - Zero or more
  • + - One or more
  • ? - Zero or one
  • ^ - Start of string
  • $ - End of string

Character Classes

  • \d - Any digit
  • \w - Word character
  • \s - Whitespace
  • [a-z] - Lowercase letters
  • [0-9] - Numbers
  • [^x] - Not x

Flags

  • g - Global (find all)
  • i - Case insensitive
  • m - Multiline
  • s - Dot matches newline

About Regex Tester

A powerful regular expression testing tool with real-time matching, common patterns library, and detailed match information for debugging and development.

About The Free QR Code Generator

Generate custom QR codes and barcodes for free with our easy-to-use online tool. Add your logo, choose custom colors and frames, and download high-resolution QR codes that are perfect for printing or sharing online.

Key Features

  • Generate QR codes for URLs, Text, Email, Phone, SMS, WiFi, vCard, and more.
  • Customize QR code colors, background, and frames.
  • Add your own logo or image to the center of the QR code.
  • Download QR codes in high-resolution PNG, JPG, or SVG format.
  • Create barcodes in various formats (Code 128, Code 39, EAN, UPC).

Perfect For

  • Sharing your website or social media profile.
  • Providing contact information via vCard.
  • Simplifying WiFi access for guests.
  • Promoting your business with scannable coupons.
  • Tracking marketing campaigns with custom QR codes.

Pro Tips for Effective QR Code Usage:

  • Use a clear and contrasting color scheme for easy scanning.
  • Test your QR code with multiple scanner apps before publishing.
  • Add a call to action (e.g., "Scan Me!") to encourage engagement.
  • Use a short URL to ensure your QR code isn't too dense.
Share:

Frequently asked questions

Is this regex tester free?

Yes. It is completely free with no signup, and everything runs locally in your browser, so your data never leaves your device.

Does it match in real time?

Yes — matches and capture groups highlight live as you type your pattern and test string, with flags like global, ignore-case and multiline.

Which regex flavor does it use?

JavaScript (ECMAScript) regular expressions, the same engine your browser and Node.js use.