Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 05-28-2005, 07:24 AM   #1
Registered: Mar 2005
Location: Boulder, CO
Distribution: Debian, previously Gentoo
Posts: 39

Rep: Reputation: 15
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"

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

Old 05-28-2005, 09:17 AM   #2
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Ubuntu/WSL
Posts: 9,785

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
I think you'll find your answers there:


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Divide up lines with string delimiter elmu Programming 3 10-07-2005 08:48 AM
Regular expression to match a valid URL string vharishankar Programming 13 07-21-2005 09:17 PM
Regular Expresions on C++ poeta_boy Programming 7 06-18-2004 12:00 AM
java test if string in string array is null. exodist Programming 3 02-21-2004 01:39 PM
java + string tokenizer dave bean Programming 2 12-10-2003 03:22 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:15 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration