- 'The substring matched by the group is accessible via the symbolic group name or
- 'The substring matched by the group is accessible via the symbolic group name or
the ``\{number}`` special sequence. See examples section.'
the ``\{number}`` special sequence. See examples section.'
- The return for no match will be C(None) in most cases, depending on whether it is used with other filters/tests or not.
It also depends on the Jinja version used and whether native is enabled.
- "For a more complete explanation see U(https://docs.ansible.com/ansible-core/devel/reference_appendices/faq.html#why-does-the-regex-search-filter-return-none-instead-of-an-empty-string)."
positional:_input, _regex
positional:_input, _regex
options:
options:
_input:
_input:
@ -52,5 +55,5 @@ EXAMPLES: |
RETURN:
RETURN:
_value:
_value:
description:Matched string or empty string if no match.
description:Matched string or if no match a C(None) or an empty string (see notes)