matchText
Gordon Tillman
got at mindspring.com
Sun Jan 21 12:50:19 EST 2007
Howdy Robert,
On Jan 21, 2007, at 11:14, Robert Mann wrote:
> Don't think I am getting the syntext correct this is returning nothing
> matchText("tword1","^tword$")
> tword1 and tword are both variables
Yep for the second argument to the matchText() function, you need to
construct the regular expression so that it contains "^" as the first
character, followed by the contents of your variable, followed by the
"$" character. In RR you can concatenate strings with the "&"
operator, so you could do something like this for your second argument:
"^ & tword & "$"
For your first argument, you would just your tword1 by itself. If
you put it in quotes like in your example, you are matching the
literal string "tword1".
--g
More information about the use-livecode
mailing list