>>>>Thanks very much Gregory! That seems to have done the trick. >>>> >>> >>>For RegEx - any time >>> >> >>I take it you like RegEx? :) >> >>Maybe someday in the not too distant future I'll get a chance to sit down and try to understand it. > >For a good intro - download the pdf here http://www.atoutfox.org/articles.asp?ACTION=FCONSULTER&ID=0000000748 It was written with a foxpro mind, although there is some .net at the end > >.Net reference on-line here http://msdn.microsoft.com/en-us/library/az24scfc.aspx