Discussion:
regex problem
Kaveh Bazargan via use-livecode
2018-11-15 17:41:14 UTC
Permalink
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/>
Loading...