in reply to Re^3: how to write a multi-line regex
in thread how to write a multi-line regex

Thanks John, that's great - the (?x) is a great little trick! I used this technique.