I have a String in the form of
<EMBED src='C:\Documents and Settings\dmadmin\Docu\View
ed\0906985
f8000197c.
pdf' height='490' width='1000'/>
In this String, I want to replace "C:\Documents and Settings\dmadmin" with "C:" so that the resultant Sting is
"<EMBED src='C:\Docu\Viewed\090698
5f8000197c
.pdf' height='490' width='1000'/>"
I am doing something like this
String dataString=sess.getAttribu
te("myEmbe
dString").
toString()
; //gets the comlete String
dataString = dataString.replaceAll("C:\
\Documents
and Settings\\dmadmin","C:");
But the value is not getting replaced. Please tell me how to sovle this issue.
Thanks
Start Free Trial