code_junkie

Regular expression that rejects all input?

Nov 10th, 2011
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. [^wW]
  2.  
  3. $.^
  4.  
  5. (?#it's just a comment inside of empty regex)
  6.  
  7. (?<!)
  8.  
  9. (?=not)possible
  10.  
  11. .^
  12.  
  13. $.
  14.  
  15. if (! str.match( /./ ))
  16.  
  17. if (!foo)
Add Comment
Please, Sign In to add comment