Guest User

Untitled

a guest
May 24th, 2016
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. /[img]([^[]*)[/img]/ig
  2.  
  3. var reg2 = /[img]([^[]*)[/img]/ig;
  4. var match2,text_str;
  5.  
  6. while (match2 = reg2.exec(text)) {
  7. console.log(match2);
  8. }
Add Comment
Please, Sign In to add comment