for simplicity, do you think changing to my later simplified pattern?

&#?\w{1,4};

I don't think its a good idea to make it overly complicated or accurate.  I think its ok to catch more than the set of valid html entities.  So saying, do any have more than 4 chars?