I would appreciate if someone can help me to come up with a regex that I can look for a pattern in a href. Pattern is to look for a query string hint=value& and then replace it with a new value hint=value2&. so the pattern should start with hint and end with & if there are more query strings or end of the value for hint.
I dont want to use jquery external library (purl). Any help will be much appreciated.
str.replace("hint=value&", "hint=value2&")not enough?value2? Could you give some examples, on a string you want to match, and what you want to replace.