It would be nice to have the possibility to specify only the last occurance of the regexp in the line. I imagine something like count=last Or maybe also count= first, third, last J. --- Begin /etc/grc.conf (modified conffile) \b\w+\b.*irc.* conf.irclog \b\w*efingerd\b.*log\b conf.efingerd \b\w*access\b.*log\b conf.apache \b\w+\b.*log\b conf.log (^|[/\w\.]+/)ping\s conf.ping (^|[/\w\.]+/)traceroute\s conf.traceroute (^|[/\w\.]+/)g?cc\s conf.gcc (^|[/\w\.]+/)netstat\s? conf.netstat (^|[/\w\.]+/)last\s? conf.log--- End /etc/grc.conf