As this is for reading external documents - which often drift some distance from the specification - I'd be tempted to stick with the more permissive RegExp. Thoughts?