ansible / ansible.builtin / v2.15.2 / filter / regex_search extract regex match from string | "added in version" 2.0 of ansible.builtin" Authors: unknownansible.builtin.regex_search (v2.15.2) — filter
pip
Install with pip install ansible-core==2.15.2
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 C(True), do not if otherwise. type: bool ignorecase: default: false description: Force the search to be case insensitive if C(True), case sensitive otherwise. type: bool
_value: description: Matched string or empty string if no match. type: str