Thank you MacTommy and Kevin ADC. I do understand students sometimes use boards to do their homework. I am only a student of life and hard knocks who hopes to return and complete a BBM in coming years.
The script I'm working on uses exiftool.exe, dcm2jpg.exe, and putty to convert DICOM images into jpgs, and then move them to another server. My problem lies in the fact that end users, Radiology Technicians, sometimes find it useful to annotate the PatientsName field of the DICOM header with fun characters: , ( * ^. After the PatientsName and StudyID field is returned by exiftool, a directory is created to store the jpg images created later by dcm2jpg ("$name.$id"). If $name has characters that dcm2jpg can't handle, the script terminates. Thus my need to eliminate all non-alphanumeric characters from $name before passing to dcm2jpg.
Again, thanks MacTommy and KevinADC for the help, and thanks to stevexff for keeping the forums honest.
++KevinADC;