We shouldn't do regex matching on html content unless there is a good reason. Performance isn't one of them :-). (Also, you don't know which way is faster until you try it out both ways.)