aspose file tools
The moose likes Servlets and the fly likes Parsing Strings in Java Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Parsing Strings in Java" Watch "Parsing Strings in Java" New topic
Author

Parsing Strings in Java

Tony Huynh
Greenhorn

Joined: Aug 21, 2001
Posts: 7
This question may be asked a lot but I can't find much useful info about my problem... What I want to do is parse a string and substitute say the "'" out of the string with say "`" how would I go about doing this??? I think VB it was something like
parseString(String, "'", "`");
I looked at the documentation for parse(java.lang.String, parameter list) I'm just not sure what the hell is a parameter list..!?!?!?!
If someone can show me how to simply parse a string in java that would be great!!! Hehehe!
Thanks in Advance!
Peter Guillebaud
Ranch Hand

Joined: Jul 11, 2001
Posts: 57
hi,
if you want to escape the apostrophe for a sql insert this has some code that will do the job:
http://developer.java.sun.com/developer/qow/archive/139/index.jsp
hope it helps...
Peter
Tony Huynh
Greenhorn

Joined: Aug 21, 2001
Posts: 7
Peter,
Thanks mate!
You're a life saver!!!

-Tony
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Parsing Strings in Java
 
Similar Threads
How smart must a Java programmer be?
Parsing a String using DOM API
java class to parse a command line string
Stored proc insert/update/del in hibernate?
XML file as String