I never was good enough with regex, and I assume this is the job for it.
I have a link like www.somelink/phoyto.jpg/?sz=50
I need to replace 50 with my value, let's say 100. Trouble is, that I cannot be sure, that this will be always sz=50
and not sz=150
or sz=10
or any other value.
What I need is to find an occurence of string contains of 'sz' + number
and replace it with 'sz=100'
.
Sure, I can do that 'manually" in some for loop, but that wouldn't be nor smar nor efiicient.