Debian Codegraph @

lib/ansible/plugins/test/search.yml

raw
1 DOCUMENTATION:
2 name: search
3 author: Ansible Core
4 short_description: Does string match a regular expression
5 description:
6 - Compare string against regular expression using Python's C(search) function.
7 options:
8 _input:
9 description: String to match.
10 type: string
11 required: True
12 pattern:
13 description: Regex to match against.
14 type: string
15 required: True
16 ignorecase:
17 description: Use case insensitive matching.
18 type: boolean
19 default: False
20 multiline:
21 description: Match against multiple lines in string.
22 type: boolean
23 default: False
24
25 EXAMPLES: |
26 url: "https://example.com/users/foo/resources/bar"
27 foundmatch: url is search("https://example.com/users/.*/resources")
28 alsomatch: url is search("users/.*/resources")
29
30 RETURN:
31 _value:
32 description: Returns V(True) if there is a match, V(False) otherwise.
33 type: boolean