A clean, beginner-friendly guide to regular expressions in major programming languages — made for curious learners, everyday developers, and anyone tired of googling regex again and again.
📦 Powered by CoffeeCodeBox
✍️ Created by Mohammadreza Sadeghi & AmirMahdi Barati
Regex Reference is a simple, open-source project that explains how to use regular expressions (regex) in different programming languages — with real examples and simple explanations.
Whether you're just getting started or you want to see how a pattern works in different languages — this guide is for you.
No deep theory. Just clear patterns, cross-language examples, and community-driven help.
- 💡 Regex basics explained clearly
- 🧪 Working examples for each language
- 🧵 Common patterns (emails, phone numbers, usernames, etc.)
- 🚦 Flags and modifiers broken down per language
- ⚙️ Plans for an interactive regex tester
- 🧑🏫 Beginner-first tutorials (coming soon)
- JavaScript
- Python
- Rust
🧩 Want to help us grow?
We’re looking for contributors to add more languages, like:
- PHP
- Go
- Ruby
- C#
- Swift
- Kotlin
- Perl
- Shell (grep, sed, awk)
- ...and others!
Open an issue or submit a pull request to add support. That would be a big help!
Check out the language-specific guides in the src/ folder:
- 📘 Regex in JavaScript
- 🐍 Regex in Python
- 🦀 Regex in Rust
- ⏲️ Coming Soon...
More tutorials coming soon!
You're welcome here — whether you're fixing typos, adding examples, or bringing in a new language!
We’d love help with:
- New languages and examples
- Better explanations and beginner tips
- Regex gotchas and performance notes
- Expanding the pattern library
Just fork the repo, make your changes, and send a pull request. You can also open issues to suggest improvements or ideas.
MIT License — free to use, share, and improve.
- Built with ❤️ by Mohammadreza Sadeghi & AmirMahdi Barati
- Maintained by CoffeeCodeBox
As creators of this regex refresher, we’d be thrilled if you gave the project a ⭐ star! It helps others discover it — and shows us you find it helpful. Hope you like it!