regex ignore case code example Example 1: regex non case sensitive /someward/i Example 2: regex string case insensitive (?i)(STRING_TO_CHECK)