strip chars

Mark Schonewille m.schonewille at economy-x-talk.com
Thu Jul 24 22:08:03 EDT 2008


Hi JB,

I don't know which stack you mean, but this should do it:

    put replacetext("123sdf45","[^0-9]","")

The ^ searches for everything that is not in the specified range 0-9.

Best,

Mark

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Benefit from our inexpensive hosting services. See http://economy-x-talk.com/server.html 
  for more info.

On 25 jul 2008, at 03:27, -= JB =- wrote:

> I downloaded a stack a while back that had a bunch
> of scripts in it that would do things like strip chars
> and various other goodies.  I can't remember who
> wrote it or the name of it so I can't find it.
>
> Does anyone know the name of a stack that has
> sample code that allows me to strip everything
> but numbers from a line of text?




More information about the use-livecode mailing list