Filter and the Question Mark (escaping ? in regex)

Robert Sneidar slylabs13 at me.com
Wed Jan 23 16:15:18 EST 2013


I just checked this, and Malte is correct. I see now why the second example would only select lines ending in ?. I should probably remove "expert in regex" from my resume? ;-)

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