javascript ignore letter case code example Example: js ignore case var str = "Visit W3Schools!"; var patt1 = /W3S/i; var res = patt1.ignoreCase