added parameter regular expression pattern