On 16. Oct 2004, at 15:05, Jeroen wrote: > This matches the complete string and I only want to match the periods > enclosed in strings, it's for syntax highlighting... Ah, in that case use the begin/end patterns and make the dot a sub pattern. Or if it's for styling, use the ability to style captures :) Kind regards Allan