Possible Duplicate:
Far Negative Lookbehind
I’ve been trying for days to get this to work. I had a similar question yesterday but it hasn’t really helped. Basically I’m trying to create a pattern that matches:
(a) where “a” can be any letter like: [a-zA-Z]. However, this should not match: paragraph (a), (b), (c), (d) or (e); because it starts with the word paragraph. If it were just (a), (b), (c), (d) or (e) then it should result in 5 matches being found.
This is what you are looking for
use
multilineoptionYou can instead break down the problem by first taking all the lines that doesn’t contain
paragraphand then collect the individual([a-zA-Z])