Set regex pattern to element match in type Rules