Advertisement
kalovski

Untitled

Sep 19th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. var input = "your test string", regex = /B[a-zA-Z\d]+/;
  2. if(!regex.test(input))
  3. alert('No match is found');
  4. else
  5. alert('A match is found');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement