Added regex string validation directive.