fixed bug in regex -> invalid xml