lineOffset wildcard

Bob Sneidar bobsneidar at iotecdigital.com
Mon Apr 19 18:02:39 EDT 2021


IOC I guess I did misunderstand after all.

Bob S


On Apr 19, 2021, at 12:32 PM, Mark Wieder via use-livecode <use-livecode at lists.runrev.com<mailto:use-livecode at lists.runrev.com>> wrote:

On 4/19/21 12:11 PM, Bob Sneidar via use-livecode wrote:
Someone needs to update the dictionary then.
wholeMatches
Syntax
set the wholeMatches to {true | false}
Summary
Specifies whether the lineOffset, wordOffset, and itemOffset functions search only for entire lines, words, or items.

Here's what I meant:

setting the wholeMatches to true will match the input string verbatim, without regard to wildcards. So

lineOffset("local tFunction", ttext) will only match
local tFunction
and
lineOffset("local*tFunction", tText) will only match
local*tFunction
not
local tFunction
and not
local someThing, tFunction, somethingElse

--
Mark Wieder
ahsoftware at gmail.com<mailto:ahsoftware at gmail.com>




More information about the use-livecode mailing list