Creates a TextField that uses regular expression provided to check validity.
The regular expression to use.