regex problem

Kaveh Bazargan kaveh at rivervalleytechnologies.com
Thu Nov 15 12:41:14 EST 2018


The following line returns true as expected:

*put* matchtext("abc", "^[ ]*")
(zero or more spaces at start of string)

But the following:

*put* replacetext("abc", "^[ ]*", "~")
returns

"abc", not "~abc" as expected.

Any ideas?
-- 
Kaveh Bazargan
Director
River Valley Technologies <http://rivervalleytechnologies.com/> • Twitter
<https://twitter.com/kaveh1000> • LinkedIn
<https://www.linkedin.com/in/bazargankaveh/>



More information about the Use-livecode mailing list