BrT

Musings about technology and other neat stuff

BrT random header image

How to match multi-line regular expressions in Emacs Lisp

March 27th, 2007 · 5 Comments

I was trying to fix the Emacs Template Toolkit mode file so that it correctly highlights multi-line directives. I could not find how to tell Emacs to make “.” match also a newline, but I found that the negative clause [^...] will match anything that is not specified, including newlines. So by using it with [...]

[Read more →]

Tags: ·