Regex_search ignoring ignorecase

ignorecase=False means it must match the supplied string exactly. That means this will only match pmd and nothing else (it will not match Pmd, PMD, etc).

regex_replace(find='pmd', replace='🥫', ignorecase=False)

Example

If you change it to ignorecase=True then it will match the supplied string regardless if the string’s letters are uppercase or lowercase.

1 Like