AW: OT: need advice with regex
Bob Sneidar
bobs at twft.com
Thu Jul 19 11:32:00 EDT 2012
Over here in the good ol' USA we are having heat waves. Send us your Global Warming nuts and we will send you our Glacial Ice Age nuts. When the weather changes again we can swap nuts. That way we will both have plenty of fresh nuts!
Bob
On Jul 19, 2012, at 3:39 AM, Tiemo Hollmann TB wrote:
> Bonjour Thierry,
> yes that made it what I wanted.
> Sunny days? You lucky one! I am so fed up with the German summer (some days
> only 10 degrees celsius at noon!!!), I can't tell you.
> Thank you
> Tiemo
>
>> -----Ursprüngliche Nachricht-----
>> Von: use-livecode-bounces at lists.runrev.com [mailto:use-livecode-
>> bounces at lists.runrev.com] Im Auftrag von Thierry Douez
>> Gesendet: Donnerstag, 19. Juli 2012 12:10
>> An: How to use LiveCode
>> Betreff: Re: OT: need advice with regex
>>
>> on mouseUp
>>
>> put "Enjoy the sunny days [at least in my place] :)" into tfilter
>>
>> put replacetext(tFilter,"\[.*\]","(done)") into tfilter
>>
>> put tfilter
>>
>> end mouseUp
>>
>> Thierry
>>
>>
>> 2012/7/19 Tiemo Hollmann TB <toolbook at kestner.de>
>>
>>> Hi,
>>>
>>> I want to replace a string with an opening and closing square bracket
>>> and any sign in between with three question marks, like this
>>>
>>> put replacetext(tFilter,"[?]","???") into tFilter
>>>
>>> I tried to escape the square brackets like this:
>>>
>>> put replacetext(tFilter,"\[?\]","???") into tFilter
>>>
>>> and get as a result in tFilter only the second bracket replaced.
>>>
>>> What am I doing wrong? Thank you
>>>
>>> Tiemo
>>>
>>>
>>>
>>> _______________________________________________
>>> 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
>>>
>> _______________________________________________
>> 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
>
>
> _______________________________________________
> 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