If posting a question regarding a questionable regexp, it would be a good idea if you'd include a small sample of the text you're running it on. That way one can get a better idea of what you're after and possibly help you create a more efficient regexp. Those first \S+ have me worried. Philip Parker - perlguy at hotmail.com