Select lines containing tex1 but not text2

Started by JJK, January 16, 2009, 08:03:42 PM

Previous topic - Next topic

Stefan

He great work epfax!

Welcome to the community, great to have you here  ;D




  1 text1 text1 text1 text1 text1 text1 text1 text1 text1   +
  2 text1 text1 text1 text1 text1 text1 text1 text1 text2   -
  3 text3 text1 text1 text1 text1 text1 text1 text1 text1   +
  4 text1 text1 text2 text3 text1 text1 text1 text1 text1   -
  5 text1 text1 text3 text1 text1 text2text1 text1 text1    -
  6 text1 text1 text3 text1 text1text2 text1 text1 text1    -
  7 text1 text1 text3 text1 text1text2text1 text1 text1     -
  8 text3 text3 text1 text3 text2 text3 text3 text3 text3   -
  9 text3 text3 text1 text3 text3 text3 text3 text3 text3   +
10 text1 text1 text3 text1 text1 text1 text1 text1 text1    +


Find all "^(.?(?!text2))*text1((?!text2).?)*$", "Document", Use regular expression, Wrap search, In Find Window 1, Mark search results in text
   Untitled1(1, 1):   1 text1 text1 text1 text1 text1 text1 text1 text1 text1    +
   Untitled1(3, 1):   3 text3 text1 text1 text1 text1 text1 text1 text1 text1    +
   Untitled1(9, 1):   9 text3 text3 text1 text3 text3 text3 text3 text3 text3    +
   Untitled1(10, 1):10 text1 text1 text3 text1 text1 text1 text1 text1 text1   +
   _______________________________________________________________________________________________

   Matching lines:      4  Matching files:      1  Files searched:     1  Elapsed: 20 msec    Speed: 0.00 Mb/s

Stefan, HippoEDIT beta tester 
HippoEDIT - the editor programmers wants to code thyself when they are dreaming.        -Don't just edit. HippoEDIT!-