Document capability of giving regex search flags (#39893)

This commit is contained in:
Harri Hämäläinen 2018-05-25 11:16:08 +03:00 committed by ansibot
parent 24e55615a0
commit 8dcb6c288c

View file

@ -887,6 +887,9 @@ To search a string with a regex, use the "regex_search" filter::
# will return empty if it cannot find a match
{{ 'ansible' | regex_search('(foobar)') }}
# case insensitive search in multiline mode
{{ 'foo\nBAR' | regex_search("^bar", multiline=True, ignorecase=True) }}
To search for all occurrences of regex matches, use the "regex_findall" filter::