If you look at test-minimal, you'll see _italic \_ _ is not italic. I'm really not sure what you're trying to do with your regular expressions - they don't look like they would cope properly with backslash escaping (and indeed they don't) What was the problem you were trying to fix? Hadley