Got more questions? Find advice on: ASP | SQL | XML | Windows
Welcome to RegexAdvice Sign in | Join | Help

Lines *Not* Containing Words

  •  03-21-2007, 2:23 PM

    Lines *Not* Containing Words

    Hello,

    I want to find lines not containing certain words.

    My text:
    This is first line
    And this is second line
    I am third line..
    .

    For example my word is "second", so regex schould matches only 1 (This is first line) and 3 (I am third line...) line.

    I'm programming in JAVA (java.util.regex.*).

    Thanks for help!

    Filed under: ,
View Complete Thread