Apps Script Regex - Case Insensitive
问题 I am writing an apps script for Google Docs. I am using findText() to locate an instance of a specified string of characters. By default, it is case sensitive and I need to remove that, but I can't figure out how to add the /i to the re2 regex so that it works in apps script engine. In my example, I am trying for find all instances of micssys (e.g. micssys, Micssys, MICSSYS, etc). Right now I have: var text = "micssys"; var bodyElement = DocumentApp.getActiveDocument().getBody(); var