On 08/10/2005, at 6.54, Gavin Kistner wrote: > begin = '(?<!--)\[\['; If the negative look-behind on “--” is to avoid “[[” in a comment, then just make a rule to match “--.*$” (or similar) and you won't need to resort to look-behind etc.