Advertisement
kalovski

Untitled

Sep 19th, 2016
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.09 KB | None | 0 0
  1. var input = "your test string",
  2. regex = /B[a-zA-Z\d]+/g;
  3. alert(input.replace(regex, "#"));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement