Guest User

Untitled

a guest
May 26th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. const regex = /(/foo/[sS]*/companies/[sS]*)w+/gm;
  2. const str = `export const companyEndpoint = '/companies'
  3.  
  4. export const blah = '/companies'
  5. const test = 'test'
  6. export const path = `/foo/${blah}/companies/${test}`
  7. `;
  8. regex.exec(str);
  9.  
  10. grep '/(/foo/[sS]*/companies/[sS]*)w+/gm' my-file.js
  11. grep -E '/(/foo/[sS]*/companies/[sS]*)w+/gm' my-file.js
Add Comment
Please, Sign In to add comment