A quick reference and explanation tool for common regular expression (regex) patterns, written in Python.
- π Explain Patterns: Get instant explanations for popular regex symbols (like
\d,\w,+, etc.) - π Search by Description: Search patterns based on what they do (e.g., search "digit" to find
\d).
from regex.regex_helper import explain
print(explain(r"\d")) # Output: \d β Digit (0β9)-
π Fast Lookups: Quickly reference regex symbols without Googling every time.
-
π§ Learn as You Code: Helps reinforce regex knowledge through repeated use.
-
π§ Lightweight and Simple: No dependencies, easy to drop into any Python project.
-
π Description-Based Search: Useful when you remember the purpose but not the exact symbol.
-
Beginners learning regex π§βπ
-
Developers needing a handy regex cheatsheet π§βπ»
-
Anyone tired of regex headaches π΅βπ«
Feel free to expand this reference dictionary or customize the helper functions for your workflow!
I used re module to delvelop this project to explain the module itself.π
ChatGPT helped me to to find functions like re.findall(), re.search(), re.escape() etc.