Robust mlogregr: Update regular expression to correctly match lines