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