CotEditor uses the ICU regular expression engine. See the following reference to make sure it works properly.