I am trying to replace encoded http%3A%2F%2F with http://
in a string using regular expressions in a jsp...
Not much luck so far, it replaces the first occurrence but the second one is replaced OK, but ":" column is missing...
So the second occurrence became http//.
I actually don't need to replace the second occurrence, but only the first one.
My string always starts with http%3A%2F%2F.
What is the correct regex and replacement for this using regular expressions?
Basically i need
http%3A%2F%2F become http://