Regex Validator Workflow Activity for Orchard Core CMS. Validate your form fields using regular expressions using the Regex Validator.

Project Description

I have developed a lot of custom workflow events and activities for Orchard CMS 1.x, and expect to develop even more for Orchard Core CMS. When Orchard Core CMS was still in beta, I already had a need for a regular expression workflow activity that allowed my clients to validate form fields as part of their workflows. At the time, Orchard Core CMS did not provide a custom activity to validate form fields using regular expressions. Therefore, I developed Regex Validator as my first custom workflow activity for Orchard Core CMS.

Regex Validator is similar to the built-in Validate Form Field Workflow Activity in Orchard Core CMS, except that it validates form fields based on a regular expression. If the form field matches the regular expression, the form field is valid. If the form field does not match the regular expression, the form field is invalid. This provides much more sophisticated validation compared to the built-in Validate Form Field Workflow Activity in Orchard Core CMS.

The Regex Validator is used in many custom workflows in Orchard Core CMS to validate emails, phone numbers, IP addresses, SKU's, serial numbers, order numbers, product keys, and other data that follow a particular pattern that can be validated using a regular expression. It's commonly used to validate information provided by customers or visitors to a website in contact requests forms, maintenance requests forms, etc.

Project Details