Skip to content

niloydatta000/RegEx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Regex Helper πŸ§ πŸ”

Overview

A quick reference and explanation tool for common regular expression (regex) patterns, written in Python.

Features

  • πŸ“˜ 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).

Usage

Explain a pattern

from regex.regex_helper import explain

print(explain(r"\d"))  # Output: \d β†’ Digit (0–9)

Advantages

  • πŸš€ 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.

Ideal For

  • 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!

Fun Fact

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.

About

Regular Expression in Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages