Javascript Code Split CASE INSENSITIVE
Very Small Simple Javascript Code Function to Perform Split that is 100% Case Insensitive [function split_anycase(strSearch, splitAt)]
Home
Short:
function split_anycase ( strSearch, splitAt ) { // using [i] flag w regex lets us perform case insensitive split let sregex = new RegExp(splitAt, 'i'); let arr = strSearch.split(sregex); return arr; }
source code home