<human>:  Python regex split case insensitive in 2.6
<bot>: Here is some code to split string 'fooxyzbar' based on case-insensitive matching using string 'XYZ'

re.compile('XYZ', re.IGNORECASE).split('fooxyzbar')

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.