File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: " problems