daily pastebin goal
17%
SHARE
TWEET

Untitled

a guest May 16th, 2018 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var entry = [ 'n000087',
  2.   '1',
  3.   '000055555',
  4.   'admin',
  5.   '1',
  6.   '0',
  7.   '2018/07/06',
  8.   '08:53:14t' ];
  9.  
  10. entry = entry.map((item)=>{
  11.     return item.replace('/\(?:[a-z])/g','');
  12. });
  13. console.log(entry);//does not remove n or t
  14. console.log(entry[0].replace('/\(?:[a-z])/g','')); // does remove n
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top