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!