🧮CalcMonk
EMI CalculatorGold RateIncome TaxInvoiceSIP Calculator

Financial

Rent vs BuyNPS CalculatorRetirementLoan AmortizationOld vs New TaxMutual Fund

Developer

JSON FormatterRegex TesterCSS GradientJWT DecoderMarkdown EditorCron Generator

Tools

Typing SpeedEmail SignaturePomodoro TimerImage CompressorQR CodePassword Generator

Financial

  • EMI Calculator
  • SIP Calculator
  • Income Tax
  • Gold Rate Today
  • NPS Calculator
  • FD Calculator
  • PPF Calculator
  • Rent vs Buy
  • Retirement
  • Loan Amortization

Developer

  • JSON Formatter
  • Regex Tester
  • CSS Gradient
  • JWT Decoder
  • Markdown Editor
  • Base64 Codec
  • Cron Generator
  • HTML Minifier
  • Color Picker
  • Box Shadow

Generators

  • Invoice Generator
  • Email Signature
  • Payslip Generator
  • Rent Receipt
  • Privacy Policy
  • Meta Tags
  • Schema Markup
  • QR Code
  • Favicon
  • Robots.txt

Everyday

  • Age Calculator
  • BMI Calculator
  • Percentage
  • Date Calculator
  • Unit Converter
  • Typing Speed
  • Word Counter
  • Image Compressor
  • Pomodoro Timer
  • Tip Calculator
🧮CalcMonk
AboutPrivacyDisclaimer

© 2026 CalcMonk. Calculations are for reference only.

Home›Regex Tester

Regex Tester

Test and debug regular expressions in real-time. See matches highlighted instantly, capture groups, and use ready-made patterns for email, phone, PAN, Aadhaar, and more.

//
0 matches
Results will appear here...

Quick Reference

. Any char
\d Digit [0-9]
\w Word char
\s Whitespace
^ Start
$ End
* 0+ times
+ 1+ times
? 0 or 1
{n,m} n to m
() Group
[] Char class

💡 Related Tools

DevJSON FormatterTextText Case ConverterSecurityPassword GeneratorCodeSchema Markup

Frequently Asked Questions

What is a regular expression (regex)?▼
A regular expression is a pattern used to match character combinations in strings. It's used in programming, text editors, and command-line tools for searching, validating, and replacing text.
What do the flags mean?▼
g = global (find all matches, not just first), i = case insensitive, m = multiline (^ and $ match line start/end), s = dotall (. matches \n too).
Why is my regex not matching?▼
Common issues: forgetting the global flag (g) for multiple matches, not escaping special characters (., *, +, etc.), and not enabling multiline for line-by-line matching.
Can I use this for Indian IDs?▼
Yes! We have presets for PAN card, Aadhaar number, Indian phone numbers, and more. Click any preset to load the pattern and test data.
Share:𝕏 TwitterWhatsAppLinkedIn