refined log regular expression