Search for Multiple Line Regular Expression

If you just want to catch everything between “begin” and “end”, this should do:

_[example] Regex Multiple Lines.kmmacros (2.6 KB)

A very good starting point is the KM Wiki article about Regular Expressions. It explains the basics, gives you examples, and – if you scroll down – many very useful links, also to existing Forum topics.

It also explains most of the expressions used in the macro.


If you want to retrieve specific information out of several lines, have a look at this topic:

4 Likes