in reply to regexp issue: Porting script from 5.6.1 to 5.005_02

I know you already have your question answered, but just a small note: \d and _ are in \w, so [\w\d\-\_] is just the same thing as [\w-].