regular expression bug fixed