5 Replies Latest reply on Oct 23, 2013 6:02 AM by myDavey

    Grep to find any word NOT in quotes

    myDavey Level 1

      Hi

      Can someone help me with this grep

      I need to find all words that are NOT in quotation makrs

       

      For example:

      Hello and "Good Morning"

       

      I would want to find the words:

           Hello

           and

      but not the words:

           Good

           Morning

       

      I tried with lookahead and lookbehind like this:

      (?!=")\w+(?!")

      but it just selects one character less

       

      If anyone can help I'd really appreciate it

      Thanks in advance

      Davey