Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Using `s` flag to match all chars
- // including \n:
- const allCharsRe = /.+/s;
- console.log(allCharsRe.test('\n')); // true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement