You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »

This function returns true, if the given text matches the regular expression, otherwise returns false.

Syntax
matches(text, regexp) #Output: Boolean
Examples
Parser expressionDescription
 matches("readme.txt", ".*\\.txt$")

This example returns a boolean value : true

matches("Jira Workflow Toolbox", "[JWT].+")
This example returns true
matches("Admin Toolbox", "[JWT].+")
This example returns false
Additional information

Parameters used in this function

ParameterInput (data type)Description
text

TEXT

Any given text.
regexp

TEXT

A valid regular expression that will check the given text, if it matches.
Output

This function returns a BOOLEAN