Skip to content

Instantly share code, notes, and snippets.

@umer4ik
Created January 23, 2017 12:25
Show Gist options
  • Save umer4ik/42cee1fe8ffe1317d1e40216e3be7a6a to your computer and use it in GitHub Desktop.
Save umer4ik/42cee1fe8ffe1317d1e40216e3be7a6a to your computer and use it in GitHub Desktop.
Regexes
//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