I have the following String text:
/Return/ReturnData/IRS1040/DependentWorksheetPP[1]/DependentCodePP
I'd like to strip off the [1]
index so I just have:
/Return/ReturnData/IRS1040/DependentWorksheetPP/DependentCodePP
How can I accomplish this in Java?
string.replaceAll("[?]","");
This doesn't seem to work.
Any help or info would be much appreciated