This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "" problems " Watch "" problems " New topic
Author

" problems

m ferguson
Greenhorn

Joined: Dec 08, 2008
Posts: 2
I am writing a program that allows me to remove a line from an xml document.. easy enough but the line I wish to remove has a ".

Pattern p = Pattern.compile("<TYPE fileData COMPUTER"file.txt">");

how do I write the line above so the two enclosed "" are not are read as text
Tom Johnson
Ranch Hand

Joined: May 11, 2005
Posts: 142
Does \" work? Thats how you do it if you want to print " anyway :



<a href="http://faq.javaranch.com/java/UseCodeTags" target="_blank" rel="nofollow">Use Code Tags!!</a>
m ferguson
Greenhorn

Joined: Dec 08, 2008
Posts: 2
Thanks!!! that sorted it
Tom Johnson
Ranch Hand

Joined: May 11, 2005
Posts: 142
 
 
subject: " problems
 
Similar Threads
need to transfer productID from url to action class in struts 2
Load tree on click of button
What am I doing Wrong? Please Help
how to bind jtable with mssql database table using netbeans 6.5
doubt with filters