is find or offset with wildcards possible?

Charles Warwick charles at techstrategies.com.au
Wed Feb 10 05:01:01 EST 2016


On 10/02/2016 7:10 pm, Tiemo Hollmann TB wrote:
> I have looked for a find or offset syntax with wildcards, to get easily the
> offset of all links, like offset("~*#",myText,lastOffset), but I only found
> the approach to loop thru the chars of the text and get with offset the
> start and end tags, get the right pairs, what can be tricky, and set the
> links.
>
> Did I oversee anything or isn't there a wildcard syntax for find or offset?
I could be wrong, but I don't believe they support wildcards.

The matchChunk function supports using PCRE regular expressions and can 
return the position of substrings that are matched.

You might be able to use it to achieve what you want.

Cheers,

Charles
> Thanks
>
> 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
>





More information about the use-livecode mailing list