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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -