Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const regex = /(/foo/[sS]*/companies/[sS]*)w+/gm;
- const str = `export const companyEndpoint = '/companies'
- export const blah = '/companies'
- const test = 'test'
- export const path = `/foo/${blah}/companies/${test}`
- `;
- regex.exec(str);
- grep '/(/foo/[sS]*/companies/[sS]*)w+/gm' my-file.js
- grep -E '/(/foo/[sS]*/companies/[sS]*)w+/gm' my-file.js
Add Comment
Please, Sign In to add comment