summaryrefslogtreecommitdiff
path: root/lib/ansible/plugins/filter/regex_search.yml
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ansible/plugins/filter/regex_search.yml')
-rw-r--r--lib/ansible/plugins/filter/regex_search.yml10
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/ansible/plugins/filter/regex_search.yml b/lib/ansible/plugins/filter/regex_search.yml
index 970de621..c61efb76 100644
--- a/lib/ansible/plugins/filter/regex_search.yml
+++ b/lib/ansible/plugins/filter/regex_search.yml
@@ -16,11 +16,11 @@ DOCUMENTATION:
description: Regular expression string that defines the match.
type: str
multiline:
- description: Search across line endings if V(True), do not if otherwise.
+ description: Search across line endings if C(True), do not if otherwise.
type: bool
default: no
ignorecase:
- description: Force the search to be case insensitive if V(True), case sensitive otherwise.
+ description: Force the search to be case insensitive if C(True), case sensitive otherwise.
type: bool
default: no
@@ -29,12 +29,6 @@ EXAMPLES: |
# db => 'database42'
db: "{{ 'server1/database42' | regex_search('database[0-9]+') }}"
- # Using inline regex flags instead of passing options to filter
- # See https://docs.python.org/3/library/re.html for more information
- # on inline regex flags
- # server => 'sErver1'
- db: "{{ 'sErver1/database42' | regex_search('(?i)server([0-9]+)') }}"
-
# drinkat => 'BAR'
drinkat: "{{ 'foo\nBAR' | regex_search('^bar', multiline=True, ignorecase=True) }}"