From: Shuaib Zahda Date: 2010-04-20T22:29:33+09:00 Subject: Regexp: exclude a word or a phrase Dear all I am trying to exclude certain text from whole text using regular expression but the i cannot get it working. I am using this to get the text between the matches and not the match itself for example, I have to process output of SVN DIFF and look through it Index: filename1 ============== text text text text text text Index: filename2 ============== text text text text Index: filename3 ============== text text I want to count how many changed lines in each file, I am thinking of getting the text between the lines of ========= which actually my target i tried to use /[^=]+/ and it does not work because it will exclude statements with equal signs as well which is not my aim any idea thanks -- Posted via http://www.ruby-forum.com/.