Filter and the Question Mark (escaping ? in regex)
Robert Sneidar
slylabs13 at me.com
Wed Jan 23 16:09:26 EST 2013
It's my understanding that * means 0 to any number of characters, in which case these are both the same thing. I might be wrong though. Might explain why some of my filtering is not working as expected. :-)
Bob
On Jan 23, 2013, at 3:30 AM, Thierry Douez wrote:
> Hi Malte,
>
> for any position of ? in a line: filter tText with "*[?]*"
>
> for the last char of a line: filter tText with "*[?]"
>
> Regards,
>
> Thierry
>
>
> 2013/1/23 Malte Brill <revolution at derbrill.de>
>
>> Hi,
>>
>> I got a var tText that contains:
>>
>> asdf
>> jkl?
>> bcdk
>>
>> I want to do something like this
>>
>> filter tText with "*\?*"
>>
>> which should leave me with only jkl?.
>>
>>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list