Created
January 23, 2017 12:25
-
-
Save umer4ik/42cee1fe8ffe1317d1e40216e3be7a6a to your computer and use it in GitHub Desktop.
Regexes
This file contains 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
//find all words after ~ charachter | |
// 'getByPath(~Assigned) + ma~Ass)' => ['Assigned', 'Ass'] | |
'getByPath(~Assigned) + ma~Ass)'.match(/~[a-z,A-Z]{0,}/g).map(el => el.substring(1)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment