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

go - serving up pdfs using golang -

python - Best design pattern for collection of objects -

r - Using `bbmle:mle2` with vector parameters (already works using `optim`) -