Replace with

Sarah Reichelt sarah.reichelt at gmail.com
Thu May 18 17:07:38 EDT 2006


On 5/19/06, Ken Ray <kray at sonsothunder.com> wrote:
> On 5/18/06 3:45 PM, "Camm29" <Camm29 at tesco.net> wrote:
>
> > It may be simple but I failed.
> >
> > i need a Simple way to achieve ,
> >
> > replace "0:" with "" in data
> > replace "1:" with "" in data
> > replace "2:" with "" in data
> > replace "3:" with "" in data
> > replace "4:" with "" in data
> > replace "5:" with "" in data
> > replace "6:" with "" in data
> > replace "7:" with "" in data
> > replace "8:" with "" in data
> > replace "9:" with "" in data
> > replace "A:" with "" in data
> > replace "B:" with "" in data
> > replace "C:" with "" in data
> > replace "D:" with "" in data
> > replace "E:" with "" in data
> > replace "F:" with "" in data
>
> You can do this:
>
>   put replaceText(data,"[0-9A-F]:","") into data

The RegEx guru strikes again :-)
Nice one-liner Ken, but I've never managed to get my head around RegEx.

Cheers,
Sarah



More information about the use-livecode mailing list