init
This commit is contained in:
commit
c5cd492449
475 changed files with 27928 additions and 0 deletions
16
technology/tools/Ansible/tests/ansible.builtin.search.md
Normal file
16
technology/tools/Ansible/tests/ansible.builtin.search.md
Normal file
|
@ -0,0 +1,16 @@
|
|||
# ansible.builtin.search
|
||||
Compare string against regular expression using Python’s `search` function.
|
||||
|
||||
## Parameters
|
||||
| Parameter | Type | Description |
|
||||
| -------------- | -------------------------- | --------------------------------------- |
|
||||
| **ignorecase** | boolean (default: `false`) | Use case insenstive matching. |
|
||||
| **multiline** | boolean (default: `false`) | Match against multiple lines in string. |
|
||||
| **pattern** | string / required | Regex to match against. |
|
||||
|
||||
## Examples
|
||||
```yml
|
||||
url: "https://example.com/users/foo/resources/bar"
|
||||
foundmatch: url is search("https://example.com/users/.*/resources")
|
||||
alsomatch: url is search("users/.*/resources")
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue