Put All Regex Matches In An Array?
I have an input box where a user can imput data like this: 528|438 530|438 528|439 532|439 533|438 534|438 Then I have the following RegeX, wich should put all matches in an array:
Solution 1:
Add /g
modifier to the regex:
var regex = /\d{1,3}\|\d{1,3}/g;
Post a Comment for "Put All Regex Matches In An Array?"