Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. // Using `s` flag to match all chars
  2. // including \n:
  3.  
  4. const allCharsRe = /.+/s;
  5.  
  6. console.log(allCharsRe.test('\n')); // true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement