c1p8 thinks t1,t2,t3,t4,t5? ヽ(=^・ω・^=)丿
Posted: Tue Dec 10, 2013 7:16 pm
Ciao a tutti!
I am continuing to experiment! After selecting html text impossible
to do on LiveCode( http://forums.runrev.com/viewtopic.php?f=7&t=17587 ), I may have found another rock!
This time I try to replace an item with replaceText using regex
.
I would like to eliminate the "central element" (§§§), preserving hello and world.
here is my script:
in fact... $1$2$5 is "hello world"
because:
$1=[hello],
$2=[ ],
$3=[§§§],
$4=[ ],
$5=[world],
$0=[hello §§§ world], (???)
Is there a solution?
Thank you all!
Mariasole
(=^.^=)
or \(\=\^\.\^\=\)
I am continuing to experiment! After selecting html text impossible


This time I try to replace an item with replaceText using regex

I would like to eliminate the "central element" (§§§), preserving hello and world.
here is my script:
Code: Select all
// hello §§§ world -------> hello world
put "hello §§§ world" into tTemp
put replaceText(tTemp,"(?:((?:hello))((?: ))((?:§§§))((?: ))((?:world)))", $1$2$5 ) into tTemp
answer tTemp
in fact... $1$2$5 is "hello world"
because:
$1=[hello],
$2=[ ],
$3=[§§§],
$4=[ ],
$5=[world],
$0=[hello §§§ world], (???)
Is there a solution?

Thank you all!
Mariasole
(=^.^=)
or \(\=\^\.\^\=\)
