fix the regexp for Kate