Alex Rivera | Logout

Regex for matching lines that do NOT contain a word

Asked 2009-05-18T09:45:32.450
11

i have the following lines:

Message:Polarion commit Mon May 18 06:59:37 CEST 2009
Message:Polarion commit Fri May 15 19:39:45 CEST 2009
Message:424-18: use new variable
Message:Polarion commit Fri May 15 19:29:10 CEST 2009
Message:Polarion commit Fri May 15 19:27:23 CEST 2009
Message:000-00: do something else
Message:Polarion commit Fri May 15 17:50:30 CEST 2009
Message:401-103: added application part
Message:Polarion commit Fri May 15 17:48:46 CEST 2009
Message:Polarion commit Fri May 15 17:42:04 CEST 2009

and i want to get all the lines NOT containing "Polarion"

how would i do this?

ps: i saw: Regex to match against something that is not a specific substring but it doesn't help me

pps: i'm trying to do this in tortoiseSVN to select log messages, and i think there is a problem with "negative lookbehind"

Edit
Report

2 Answers

0

I could not find any information about what regex engine TortoiseSVN is using, but you might ask on the mailing list. Not all engines support advanced features like zero-width negative look-behind.

answered 2009-05-18T14:02:32.247
0

This has worked for me and is quick to enter (in a search dialogue box or the like): ^(?!.*not this).*but this

answered 2012-06-06T02:11:39.153

Your Answer