Re: Filter and the Question Mark (escaping ? in regex)

2013-01-24 Thread Thierry Douez
Hi Bob, You are wrong and right :) Right because that's how regex works in most environment. Wrong because regex inside Livecode behave sometimes in strange ways... Anyway, be happy. Thierry 2013/1/23 Robert Sneidar slylab...@me.com I mean Thierry I just checked this, and Malte is

Filter and the Question Mark (escaping ? in regex)

2013-01-23 Thread Malte Brill
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?. This does not appear to work. Any pointers on how to correctly escape the question mark greatly appreciated. Cheers, Malte

Re: Filter and the Question Mark (escaping ? in regex)

2013-01-23 Thread Mark Schonewille
Malte, Try this: filter tText with *[?]* Kind regards, Mark On 1/23/2013 11:49 AM, Malte Brill wrote: 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?. This does not appear to work. Any

Re: Filter and the Question Mark (escaping ? in regex)

2013-01-23 Thread Thierry Douez
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 revolut...@derbrill.de Hi, I got a var tText that contains: asdf jkl? bcdk I want to do something like this filter tText

Re: Filter and the Question Mark (escaping ? in regex)

2013-01-23 Thread Robert Sneidar
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

Re: Filter and the Question Mark (escaping ? in regex)

2013-01-23 Thread Robert Sneidar
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

Re: Filter and the Question Mark (escaping ? in regex)

2013-01-23 Thread Robert Sneidar
I mean Thierry 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