layout | title | published |
---|---|---|
default |
every |
true |
[%CFEngine_function_prototype(regex, list)%]
Description: Returns whether every element in the variable list
matches
the [unanchored][unanchored] regex
.
[This function can accept many types of data parameters.][Functions#collecting functions]
Arguments:
-
regex
: Regular expression to find, in the range.*
-
list
: The name of the list variable to check, in the range[a-zA-Z0-9_$(){}\[\].:]+
. It can be a data container or a regular list.
Example:
[%CFEngine_include_snippet(every.cf, #+begin_src cfengine3, .*end_src)%]
Output:
[%CFEngine_include_snippet(every.cf, #+begin_src\s+example_output\s*, .*end_src)%]
History: The [collecting function][Functions#collecting functions] behavior was added in 3.9.
See also: [About collecting functions][Functions#collecting functions], filter()
, some()
, and none()
.