Marketplace wizards in EvOps have support for validating data input in two ways, either using Service Endpoints and Functions written in C# or PowerShell, or using regular expression. This article will describe the latter alternative regular expressions (RegEx) more in details.
Regular expression validation can be configured for prompt types; List, Textbox, Multi-line Textbox, Options, and Password. Validation is added to prompts in Validation tab, you click Add and select Regular expression from the list.
Here, a custom message can be configured to be shown when the regular expression is false. In Pattern field, you specify the regular expression that needs to match the input value for the validation to be successful.
Writing regular expression can sometimes be cumbersome, so using a RegEx tester and debugger is essential to save time. We recommend using RegEx101 that is an online version that works well. It can be found here: https://regex101.com