Replace with

Sarah Reichelt sarah.reichelt at gmail.com
Thu May 18 16:46:33 EDT 2006


On 5/19/06, 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

Untested, but should do the job:

put "0123456789ABCDEF" into tChars
repeat for each char c in tChars
  replace c & ":" with "" in data
end repeat

If you want to replace "A:" but not "a:", then set the caseSensitive
to true first.

Cheers,
Sarah



More information about the Use-livecode mailing list