Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let example = " Spaces Spaces"
- let regex = /\s/g
- console.log(example.match(regex))
- // will return [ ' ', ' ', ' ', ' ', ' ', ' ' ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement