in reply to RegEx misbehaving?

Thankyou all for the above comments, this morning i got two different versions of the programs working together combining all the suggestions above. Thanks again,PC