anyMatchingAttribute
Description: Checks to see if any of the given
attributes, match the given condition. This function has no subject and takes one or more
arguments that are Regular Expressions to match against attribute names. Any attribute
whose name matches one of the supplied Regular Expressions will be evaluated against the
rest of the Expression. If any of the attributes specified, when evaluated against the
rest of the Expression, returns a value of true
, then this function
will return true
. Otherwise, this function will return
false
.
Subject Type: No Subject
Arguments:
Regex : One or more Regular Expressions (in the Java Pattern syntax) to evaluate against attribute names
Return Type: Boolean
Examples: Given that the "abc" attribute contains the value "hello world", "xyz" contains "good bye world", and "filename" contains "file.txt" consider the following examples:
Table 1.22. Table 22. anyMatchingAttribute Example
Expression |
Value |
|
|
|
|