I'm trying to write a regular expression to match a certain string. At the moment I have this regex:
regx = /wid=\d+(\.\d)*/g,
which would match wid=100
in the following link/string:
image/hugoboss/test%2Dimg?wid=100
However I want to extend this link/string to :
image/hugoboss/test%2Dimg?wid=100&crop=0,0,960,650
so that it ends with this format &crop=0,0,960,650
. How could I adapt my regex so that it matches wid=100&crop=0,0,960,650
Thanks!