From: Dhruva Sagar Date: 2010-06-03T19:16:37+09:00 Subject: Re: gsub with wildcard --001636b14d0255808e04881d80e7 Content-Type: text/plain; charset=UTF-8 This should do - string.gsub(/\d+/, '20') On Thu, Jun 3, 2010 at 15:40, Reinhart Viane wrote: > Hello, > > > > I want to replace: > > > > id="idxxxxxxx" with id="id20" > > in a string > > > > I know this can be done with gsub but I don't know how to use wildcards. > > The xxxxxxx can be of any length but only numbers > > > > Thx > > -- Thanks & Regards, Dhruva Sagar. --001636b14d0255808e04881d80e7--