Created
September 7, 2016 19:41
-
-
Save jmahc/ddcad0425062182fa955a5048f41a252 to your computer and use it in GitHub Desktop.
Commonly used Regex by Jordan McArdle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Selects id's inside of an HTML tag that has a space before it. | |
` id="[^"]+"` | |
// Select `headings"` inside of an HTML tag that has a double quote after it, without a space or hyphen before it. | |
// Used to grab the class name headings in this case | |
`(?<! )+(?<!-)+(?=headings")\w+([headings"])` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment