Fixed the regular expression of the condition