in reply to need helpo regarding regular expression
What do you see when you add print "<<$oldstring>>\n"; to your script?
Dave