Search / replace

Bernard Devlin bdrunrev at gmail.com
Sat Feb 20 06:47:32 EST 2010


On Sat, Feb 20, 2010 at 11:24 AM, Jacques Hausser
<jacques.hausser at unil.ch> wrote:
>
> Le 20 févr. 2010 à 10:28, Igor de Oliveira Couto a écrit :
>
>>
>> I came across problems with matchChunk, too, but for a different reason. I wanted to use it in a loop, so I could delete the required parts of each match. Unfortunately, even though it was returning 'true' to my regex - it *was* finding matches - it refused to populate my 'positionvars', so it was useless.
>>
>
> if I remember well, to get the 'positionvars' populated, they must be initialized before (put 0 in...) and the regex must be in parentheses.

Jacques, that was my memory too... but I went back to the dictionary
to check, and it appears that the positionVars no longer need to be
pre-declared.  I did a quick check and it is true.

Bernard



More information about the Use-livecode mailing list