Last active
October 8, 2019 03:49
-
-
Save gullinbursti/5b768f43e917a494303c6c2900e91540 to your computer and use it in GitHub Desktop.
RegEx Snippetz
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
// search for css-classes-in-html: | |
const re = /\"([a-z0-9]+((\-\w)?[a-z0-9]+)+)\"/; | |
// https://stackoverflow.com/questions/27928791/how-to-select-via-regex-all-class-notations-in-css-file | |
// [=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=] // | |
// search $_POST w/ JSON attrib: | |
const re = /\$_POST\[\'([a-z_]+)\'\]/; // $data->payload->$1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment