1. Are you sure that going to the end of the first match is correct? It seems to me that this will skip matches. Say you search for ".*" on a line that reads " xxx". 2. What about "^"? 3. What about empty matches? That could take a while... Morten - : send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html