Regex can now be used in conditional comparisons

You can now use a regular expression (regex) when comparing a value in various conditional tests, including:

<w:if condition="parameter-name=~regex">

<w:unless condition="parameter-name=~regex">

<w:kb:item:each condition="parameter-name=~regex">

Note the use of "=~" for the comparison operator, which specifies that the value after the operator is a regular expression.

This allows you to find items where only certain characters in the specified parameter match the specified values.

There are some limitations on the regex syntax that can be used, which we'll be documenting soon. If you need this feature right away, please contact support for assistance.

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk