Fix regex filter docs (#79736)

* Fix notes in regex_replace doc

The documentation says that this maps to 'regex.replace' when it should say 're.replace'. The distinction is important because of the third-party 'regex' module that has more features than the built-in 're' module. https://pypi.org/project/regex/

* Fix notes in re.search docs

The documentation says that this maps to 'regex.search' when it should say 're.search'. The distinction is important because of the third-party 'regex' module that has more features than the built-in 're' module. https://pypi.org/project/regex/
pull/79758/head
antonc42 2 years ago committed by GitHub
parent b756a08d89
commit cf50d8131f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -5,7 +5,7 @@ DOCUMENTATION:
description:
- Replace a substring defined by a regular expression with another defined by another regular expression based on the first match.
notes:
- Maps to Python's C(regex.replace).
- Maps to Python's C(re.replace).
positional: _input, _regex_match, _regex_replace
options:
_input:

@ -5,7 +5,7 @@ DOCUMENTATION:
description:
- Search in a string to extract the part that matches the regular expression.
notes:
- Maps to Python's C(regex.search).
- Maps to Python's C(re.search).
positional: _input, _regex
options:
_input:

Loading…
Cancel
Save