regex
Dan Shafer
revdan at danshafer.com
Sat Sep 11 14:29:45 EDT 2004
First of all, matchText requires two arguments, a string to be searched
and a regular expression to be used for the search. You may have just
given us an abbreviated part of the call, but I thought I should point
that out.
Not tested, but I suspect:
put fld "findwhat" into whatToFind
matchtext (stringToSearch, whatToFind)
would work fine.
Of course, matchtext (stringToSearch, fld "findwhat") might also work.
Dan
On Sep 11, 2004, at 6:08 AM, Nicholas Thieberger wrote:
>
> How can I get a regex to take the search expression from a field?
> This doesn't work
> matchtext (fld "findwhat")
>
> thanks
>
> nick
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
More information about the use-livecode
mailing list