regex does not honour escaped characters?