Skip to content

Latest commit

 

History

History
66 lines (50 loc) · 3.26 KB

README.md

File metadata and controls

66 lines (50 loc) · 3.26 KB

Scary Regex 👻

Variations Platform Shell

A mini knowledge base to kick off your not-so-scary learning journey with regular expression aka regex.


🙋‍♂️ What's Over Here?

  • A summary of the Regex 101 module from regexlearn
  • Self-collection of regex patterns
  • Regex for productivity hacks

📌 Note: Regex is easier to write but harder to make sense. So, keep a handy cheat-sheet and make a habit of going through random regex patterns and try to describe them


🎮 Regex-101 Learning

Module outline (based on regexlearn.com):

⚠ Outline with topic file links to be added later



Regex Patterns for Productivity

My collection of regex patterns:

Serial Task Regex
1 URL Matching Example
2 Convert to CSV Example

⚒ Usage

  • Use Regex-101 as a reference for the concepts regarding regular expressions

    • Examples follow three column structure: | Input file | regex | matched text |
  • Check the Regex for Productivity collection for reuse or tweak it to your own need.

    • To run through Git Bash on Windows, execute $ grep -oP <REGEX> <FILE>
    • Options:
      • -o show only the matches, not entire lines
      • -P enables interpretation of PCRE (Perl Compatible Regular Expressions)