tom, > The target string is always a list of numbers starting with 's' and > matched with a number. Some examples are; > > s1s2s3 > s2s33s54s32s122 > s3s6 > > The format never changes. These are student numbers. I have to remove why don't you simply treat it as an "s"-delimited list? nagrom http://morgankelsey.com