Use replaceText to replace groups

Find out what's going on with LiveCode (the company), product releases, announcements, and events.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Pierre1234
Posts: 3
Joined: Sat Jun 06, 2015 10:53 pm

Use replaceText to replace groups

Post by Pierre1234 » Thu Nov 19, 2015 12:04 am

Hello,
I would like to do something like that:
put replace("titiTotoHello", "(A-Z)", "_\1") into tmp
to get tmp="titi_Toto_Hello"

But livecode does not understand \1 like other languages like python, perl, (or notepad++ :-)).
It returns: titi_\1oto_\1ello

Is there simple way to do that? Does Livecode fully implements regex?

Post Reply

Return to “Announcements”