I\'m trying to replace all link href\'s in a large string with a different URL. With the following code It seems to replace only the 2nd link leaving the first one intact, c
Just use the greedy operator in your regex like this:
'//'