Any characters wildcard or regex?

Dave Cragg dcragg at lacscentre.co.uk
Thu Sep 22 12:03:56 EDT 2016


> On 22 Sep 2016, at 16:45, Keith Clarke <keith.clarke at me.com> wrote:
> 
> Thanks Mike, pilot error here - replacetext(tData,"<.*>",empty) looks to be a viable direction of travel once correctly typed. Time to rest my eyes, methinks! 8-)
> Best,
> Keith..

I think you might need replacetext(tData,"<.*?>",empty)

The '?' cause the match to be non-greedy. Without it, everything from the first "<" to the last ">" will be replaced.

Cheers
Dave



More information about the use-livecode mailing list