LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   regular expresions: java: matching lines with out string (https://www.linuxquestions.org/questions/programming-9/regular-expresions-java-matching-lines-with-out-string-327933/)

zymos 05-28-2005 07:24 AM

regular expresions: java: matching lines with out string
 
I am interfacing with a java program and i am having trouble figuring out howto match all lines that do not contain "string"

(.*string.*)
will match all lines with "string" but i need to opposite.

also i need lines that do not contain "?"
i assume its just "/?" for the string but im not sure

thanks
jeff


http://dir.happytrees.org

jlliagre 05-28-2005 09:17 AM

I think you'll find your answers there:
http://www.oreilly.com/catalog/regex2/chapter/ch08.pdf


All times are GMT -5. The time now is 01:36 PM.