Skip to content

md-command-line/personal_regex_quick_reference

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

personal_regex_quick_reference

Some rules that are helpful with regex:

^ - means enforce it matches the beginning.
$ - means enforce it matches the end.
? - means match characters excluding escaped characters and line breaks.
. - means matches a single character escaped characters and line breaks.

All of this information can be learned by looking at the regexr site.

My current process for resolving regular expresions: https://regexr.com/

Find all instances of class="" or class='' in an html file.
class=(["'])(?:(?=(\\?))\2.)*?\1
condensed further: 
class=(["'])(?:(?=(\\?)).)*?\1

Find all instances of () with or without values inside.
/(\(([^)]+)\)|\(\))()/g

/[\(\)]/g

This is a personal reference as I use them I will list further commands.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published