Expression Language
Also available as:
PDF

find

Description: Returns true if the Subject contains any sequence of characters that matches the Regular Expression provided by the argument.

Subject Type: String

Arguments:

  • Regex : The Regular Expression (in the Java Pattern syntax) to match against the Subject

Return Type: Boolean

Examples:

If the "filename" attribute has the value "a brand new filename.txt", then the following Expressions will provide the following results:

Table 1.11. Table 11. find Examples

Expression

Value

${filename:find('a [Bb]rand [Nn]ew')}

true

${filename:find('Brand.*')}

false

${filename:find('brand')}

true