Fix bug in regular expression Closed #48