I am using Python 2.6 and am getting [what I think is] unexpected output from re.sub()
>>> re.sub('[aeiou]', '-', 'the cat sat on the mat')
'th- c-t s-t -n th- m-t'
>>> re.sub('[aeiou]', '-', 'the cat sat on the mat', re.IGNORECASE)
'th- c-t sat on the mat'
If this output is what is expected, what is the logic behind it?