used regex instead of PRE

To fix the persistent IE problem