Debian Codegraph @

lib/ansible/plugins/test/match.yml

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