On Thursday, September 26, 2002, at 07:13 PM, Robert Linder wrote:

> I am using string.gsub to replace "/%[0-8a-fA-F][0-8a-fA-F]/" with "_".
...
> The following gsub is what I would need to use in a program
>
> "Simple+SNMP+%28s2nmp%29".gsub( /%[0-8a-fA-F][0-8a-fA-F]/ , "_" )
> ---> "Simple+SNMP+_s2nmp%29"

Why would it replace %29? your matching 0-8, not 0-9.