On May 9, 2005, at 23:50, Brad Miller wrote:
> My first though was that the .* inside the square-brackets should be
> non-greedy and I tried making the whole TOC part of the regular
> expression non-greedy but neither of those options worked for me. I'm
> not sure why....
This works for me (double-escaped):
\\\\part\\*?(\\[.*?\\])?\\{.*?\\}