regex - Need regrex to separate the integer from the array to comma separated -


i looking have regrex passing value in array comma separated.here regrex used fetching value.

regrex : id="selectedagency(.+?)" using regrex able find below value matching in id="selectedagency[1]"

hence outcome receives follows:

&selectedagencies=[14],[12],[10],[9]

however have actual output below:

&selectedagencies= 14,12,10,9

thanks

enter image description here remove [] use different regex:

 regex : id="selectedagency\[(\d+) 

Comments

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -