Regex Tester

Write a pattern, see every match highlighted live, with capture groups broken out.

Runs in your browser — nothing is uploaded
Try:
//g
Test text
3 matches
Contact WebPrims on +91 96464 51712 or [email protected].
Batches start 6 September 2026 and 20 October 2026.
Student IDs: WP-2024-018, WP-2025-114, WP-2026-007

Capture groups

  • 124: $1=2024$2=018
  • 137: $1=2025$2=114
  • 150: $1=2026$2=007

Want to understand what this is doing?

Regex is the part beginners fight with most — we cover it properly. We teach it on the Python Programming course in Amritsar, in person or online.