strip chars
-= JB =-
sundown at pacifier.com
Fri Jul 25 03:07:48 EDT 2008
Hi Mark,
Thank you very much!
I found the stack it is stdLib but it had an example
to trim spaces etc. but not strip numbers so your
code was definitely needed.
-=>JB<=-
On Jul 24, 2008, at 7:08 PM, Mark Schonewille wrote:
> 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?
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
More information about the use-livecode
mailing list