-3

I'm having java string as

 "zHG\/dB0lt2Z8xrUQlbZXfRyZuvsDZZM+H5M7vHBbsEo="

how to remove '\' character from the abovestring

thanks in advance

Apache
  • 1,796
  • 9
  • 50
  • 72

1 Answers1

0

Try this

String str = "zHG\/dB0lt2Z8xrUQlbZXfRyZuvsDZZM+H5M7vHBbsEo=";
str = str.replace("\\","");

Or you can use replaceAll

For more detail Check this link

Community
  • 1
  • 1
Himanshu
  • 4,327
  • 16
  • 31
  • 39
  • Apache was tried,but hitting Unexpected internal error near index 1,see comments under question.Can you give alternate solution? – Dharma Dec 05 '14 at 09:23