Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- console.log( /\w(?!@)/.exec('a!')[0] );
- // a
- console.log( /\w(?!@)/.exec('a@') );
- // null
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement