wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes Replacing Strings with characters, any functions in java that can do this job Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Replacing Strings with characters, any functions in java that can do this job" Watch "Replacing Strings with characters, any functions in java that can do this job" New topic
Author

Replacing Strings with characters, any functions in java that can do this job

Bhasker Reddy
Ranch Hand

Joined: Jun 13, 2000
Posts: 176
Is there any function in JAva that i can use
to replace
%3C with <
%/*%3C with <
%3E with >
%2F with /
%0D%0A with


Bhasker Reddy
Tony Alicea
Desperado
Sheriff

Joined: Jan 30, 2000
Posts: 3222
    
    5
This is not a JSP question so I am moving it to the beginner forum.


Tony Alicea
Senior Java Web Application Developer, SCPJ2, SCWCD
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
Where is the original String coming from? An input file? A String from a TextComponent?
Also - just to be clear, when you run into the 3 characters %3C together you always want them replaced by the single character <, is that correct?
Also - are all Strings to be replaced started with a % character?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Replacing Strings with characters, any functions in java that can do this job
 
Similar Threads
Inserting a parameter into XSL using Java
Replacing strings like %3C with any functions in java
SOAPAction header problem...Urgent
save a xml file using java
I need the URL unicode representation of <> angle brackets?