in reply to Re^2: broken regex
in thread broken regex

Then you probably want your regex to be something more like s/\b$_\b//g which will match word boundaries. Just to make sure that there's nothing more that you need to do than is coming across in your message, what were you aiming to do with the %\d?

Hays