Advertisement
Anubis_Black

MatchCollection Traversing JS

Mar 31st, 2013
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. while (match = regex.exec(input)) {
  2.     input = input.replace(match[1], "[URL=").replace(match[3], "]").replace(match[5], "[/URL]");
  3. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement