replaceAll not working ( I think so )

I made Ifcurs replace all %20 thingies with + like a real browser. But, sadly, the system does not/can't ( however you say ) replace those + as %20, and then decode them again into normal spaces. Can somebody explain what did I mess with my code?

You are viewing a single comment. View All
Answered by ch1ck3n [earned 5 cycles]
View Answer

Hi, instead of using replaceAll, try using replace:

do take note of the g flag, that makes it so replace tries to match as many times as possible. Without it, it will only match the first one.