Strange regexp problem

Kaveh Bazargan kaveh at river-valley.com
Wed Jun 8 11:54:21 EDT 2005


I am getting a strange behavior, which I think started recently on some
stacks which were working OK before. To test, I entered some simple
expressions in the Message Box. Here are the expressions typed and the
results after each:

put replacetext("one.two", "\..+", "")
"one"

put replacetext("one.two", ".+\.", "")
"one.two"

put replacetext("one.two", ".+\.", " ")
" two"

The middle one should give "two", but doesn't. The third one works with a
space as replacement. What is going on?
-- 

Kaveh Bazargan
http://www.river-valley.com/
http://www.holographer.org/


More information about the use-livecode mailing list