Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var entry = [ 'n000087',
- '1',
- '000055555',
- 'admin',
- '1',
- '0',
- '2018/07/06',
- '08:53:14t' ];
- entry = entry.map((item)=>{
- return item.replace('/\(?:[a-z])/g','');
- });
- console.log(entry);//does not remove n or t
- console.log(entry[0].replace('/\(?:[a-z])/g','')); // does remove n
Add Comment
Please, Sign In to add comment