From fdab7fcec54bfe374b1abff79875f0b1bec5a490 Mon Sep 17 00:00:00 2001 From: Kyle Gordon Date: Sun, 22 Mar 2020 20:42:59 +0000 Subject: [PATCH] Clarify ignorecase (#12485) Clarify the use of ignorecase and the need for Python style True/False --- source/_docs/configuration/templating.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/_docs/configuration/templating.markdown b/source/_docs/configuration/templating.markdown index 6668c9d0886..de04e1a88be 100644 --- a/source/_docs/configuration/templating.markdown +++ b/source/_docs/configuration/templating.markdown @@ -345,8 +345,8 @@ Some of these functions can also be used in a [filter](https://jinja.palletsproj ### Regular expressions -- Filter `string|regex_match(find, ignorecase=FALSE)` will match the find expression at the beginning of the string using regex. -- Filter `string|regex_search(find, ignorecase=FALSE)` will match the find expression anywhere in the string using regex. +- Filter `string|regex_match(find, ignorecase=False)` will match the find expression at the beginning of the string using regex. +- Filter `string|regex_search(find, ignorecase=True)` will match the find expression anywhere in the string using regex. - Filter `string|regex_replace(find='', replace='', ignorecase=False)` will replace the find expression with the replace string using regex. - Filter `string|regex_findall_index(find='', index=0, ignorecase=False)` will find all regex matches of find in string and return the match at index (findall returns an array of matches).