如何使用PHP preg_replace删除所有urlencoded%值?

I am trying to remove all %** from a string that has been urlencoded. I figured using this regular expression "%[a-zA-Z0-9]{2}" or this "%[a-zA-Z0-9][a-zA-Z0-9]" would do it but it does not work. What should I do to just plain remove all values from a string that are put there using urlencode. Although I do not want to remove the + sign.

Well regardless of whether I should be doing this or not the regular expression needed to be "/%[a-zA-Z0-9][a-zA-Z0-9]/". The problem was not having the / in there on both ends to act as a delimiter.

Why do you not just urldecode them?