> Could you please explain about > > sub("^([0-9]*).*$", "\\1", fields) See ?regex and the extensive online literature on regular expressions. S Ellison ******************************************************************* This email and any attachments are confidential. Any use...{{dropped:8}}