fix regexp for catching lines.