Clarify ignorecase (#12485)

Clarify the use of ignorecase and the need for Python style True/False
This commit is contained in:
Kyle Gordon 2020-03-22 20:42:59 +00:00 committed by GitHub
parent 9d3f18feb6
commit fdab7fcec5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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).