Created
April 6, 2016 04:36
-
-
Save umanda/e8bca64a04561eb5eb7ef58f5cf91e63 to your computer and use it in GitHub Desktop.
Useful Regex
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
// Regular expression for extracting tag attributes | |
<name attribute=value attribute="value" attribute='value'> | |
(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|[>"']))+.)["']? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment