Skip to content

An attempt to tone down the scare factor ๐Ÿ‘ป of the dreaded regular expression

License

Notifications You must be signed in to change notification settings

bijoy26/scary-regex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

7 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

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)

About

An attempt to tone down the scare factor ๐Ÿ‘ป of the dreaded regular expression

Topics

Resources

License

Stars

Watchers

Forks