Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Escaping the backslash character in JSP

843840Jul 15 2008 — edited Jul 16 2008
The input String to my JSP can contain \ character, I need to normalize this \ character to words "back slash". I tried the following and it doesn't work:

normVal = normVal.replaceAll("\\\"," back slash ");

Can someone please tell me how i can get this to work?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 13 2008
Added on Jul 15 2008
5 comments
1,909 views