Fixed issue of regular expression failed to match abnormal string.