Guest User

Untitled

a guest
Feb 22nd, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. ### AWS s3 filename
  2. ```js
  3. const regex = /((?!([0-9a-zA-Z!\-\_\.\*'\(\)])).)/g;
  4.  
  5. const
  6. s = '1;çççç~~~~123-aãbc';
  7.  
  8. console.log(s.replace(new RegExp(regex), ''))
  9.  
  10. "1123-abc"
  11. ```
Add Comment
Please, Sign In to add comment