I'm trying to match the first 5 lines, and the last line, in this sample:
-- 2012-09-20 rep +6 = 184
1 12532070 (2)
2 12531806 (5)
2 12531806 (5)
-- 2012-09-21 rep +12 = 196
3 125xxxxx (-1)
3 125xxxxx (-1)
16 12557052 (2)
Leaving the following unmatched:
3 125xxxxx (-1)
3 125xxxxx (-1)
I've tried the following regular expressions:
^.*[^(-1)\r\n].*
^.*[^(-1)].*\r\n
^.*[^\(-1\)\r\n].*
^.*[^\(\-1\)\r\n].*
^.*[?!\(-1)\r\n].*
^(!?.*-1.*\r\n)
But none of them do what I want (mostly matching all lines).
My RegEx skills are not brilliant - can anybody point me in the right direction?