Google Spreadsheets Regex Case Insensitive (Regexreplace)

前端 未结 4 606
情歌与酒
情歌与酒 2020-12-29 23:41

I\'m trying to create a case insensitive regex query in Google Spreadsheets with the regexreplace function. Is that possible? I\'ve tried the \\i flag and got a #REF error s

4条回答
  •  再見小時候
    2020-12-30 00:22

    As Alexander Ivanov wrote,

    Yes, I'm understand that this topic has resolved. But I found something fancy!

    =REGEXREPLACE("Test","(?i)t","") It returns what you want

    es

    P.S.: Please, if somebody knows why it works then comment.

    Google uses their own re2 regular expressions engine. Using (?i) is allowing you to set the flags for case insensitive search https://re2.googlecode.com/hg/doc/syntax.html

提交回复
热议问题