Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 461 Bytes

regarray.markdown

File metadata and controls

20 lines (13 loc) · 461 Bytes
layout title published
default
regarray
true

[%CFEngine_function_prototype(array, regex)%]

Description: Returns whether array contains elements matching the [anchored][anchored]regular expression regex.

[%CFEngine_function_attributes(array, regex)%]

Example:

[%CFEngine_include_snippet(regarray.cf, #+begin_src cfengine3, .*end_src)%]

Output:

[%CFEngine_include_snippet(regarray.cf, #+begin_src\s+example_output\s*, .*end_src)%]