in reply to Re: regex substitution
in thread regex substitution

That would be a problem if \w included the octothorpe. It doesn't, so it's not a problem.