Added regex and width to text criterion