... I forgot to add: Base R regex functionality only. No special string packages or functions (like gsubfn). I'm sure those would help, but that's not what I'm after. -- Bert -- Bert Gunter Genentech Nonclinical Biostatistics