Interesting idea, sounds worth implementing if the performance impact is not too great for the regexp matching.