PCF - Regular Expression Custom Field
Regular Expression custom field enables you to validate a text custom field against a regular expression. This field is useful to check the following information for instance: Social Security Numbers, phone numbers, zip codes, currency, date formats, and so on.
Configuring PCF Regular Expression custom field
Add the PCF Regular Expression custom field.
Go to the Configure link for this field. You will see the page like the following example:
regex_config.PNGClick the Edit Regex link to configure the regular expression.
SSN.PNGClick the Save button, and the regular expression will be associated to the current custom field.
saved_regex.PNG
Using PCF Regular Expression custom field
Go to an issue and edit the field with a value that does not match the regex.
If you try to save the changes, an error message appears. Otherwise, here are some usage examples for this type of custom field.
regex_cf_examples.PNGFor more regex examples use the search from RegExLib.