Page History
...
- The regular expression for a business date looks complex which is particularly true for the below regular expression which checks the input format dd.mm.yyyy or dd-mm-yyyy and the number of days per month including consideration of leap years.
- Find the regular expression for copy & paste:
^(?:(?:31(\/|-|\.)(?:0?[13578]|1[02]))\1|(?:(?:29|30)(\/|-|\.)(?:0?[13-9]|1[0-2])\2))(?:(?:1[6-9]|[2-9]\d)?\d{2})$|^(?:29(\/|-|\.)0?2\3(?:(?:(?:1[6-9]|[2-9]\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00))))$|^(?:0?[1-9]|1\d|2[0-8])(\/|-|\.)(?:(?:0?[1-9])|(?:1[0-2]))\4(?:(?:1[6-9]|[2-9]\d)?\d{2})$
- Users wouldn't want to repeatedly type such long regular expressions. Instead they can use the below Add from Favorites link to copy the regular expression from the list of favorites.
When the workflow that declared which declares the business_date
variable is deployed then users have to type a valid date when adding an order:
...
Use with File Order Sources
One more example is use of a regular expression Regular expressions are used to specify a matching pattern for file paths path of File Order Sources used with JS7 - File Watching.
...
Overview
Content Tools