ansible / ansible.builtin / v2.16.0 / filter / regex_search extract regex match from string | "added in version" 2.0 of ansible.builtin" Authors: unknownansible.builtin.regex_search (v2.16.0) — filter
pip
Install with pip install ansible-core==2.16.0
Search in a string to extract the part that matches the regular expression.
_input: description: String to match against. required: true type: str _regex: description: Regular expression string that defines the match. type: str multiline: default: false description: Search across line endings if V(True), do not if otherwise. type: bool ignorecase: default: false description: Force the search to be case insensitive if V(True), case sensitive otherwise. type: bool
_value: description: Matched string or empty string if no match. type: str