Is it possible to match multiple lines in a single match? For instance, to match: A heading ======== I tried: ^(.+?)\\n={3,}$ but it doesn't seem to work. Any guesses why? I hope I have just made a silly mistake somewhere. Haris