mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Correct match test documentation (#50229)
Match test matches zero or more characters at the begining of the string. Fixes: #32366 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
committed by
Sandra McCann
parent
fc5ea7c999
commit
14eba662c8
@@ -59,7 +59,7 @@ To match strings against a substring or a regular expression, use the "match", "
|
||||
msg: "matched pattern 4"
|
||||
when: url is regex("example.com/\w+/foo")
|
||||
|
||||
'match' requires a complete match in the string, while 'search' only requires matching a subset of the string.
|
||||
'match' requires zero or more characters at the beginning of the string, while 'search' only requires matching a subset of the string.
|
||||
|
||||
|
||||
.. _testing_versions:
|
||||
|
||||
Reference in New Issue
Block a user