i am using a regular expression: pattern=/([a-zA-Z0-9_\.].*?)=(.*?);/g; which has more than one match in the text i use. Now i want the content which is after “=” . I used RegExp.$2 but it gives only one value. Please help me for getting the value after “=” in all matches available.
i am using a regular expression: pattern=/([a-zA-Z0-9_\.].*?)=(.*?);/g; which has more than one match in
Share
You have to iterate through matches in a while loop: