lineOffset wildcard

Bob Sneidar bobsneidar at
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<mailto:use-livecode at>> wrote:

On 4/19/21 12:11 PM, Bob Sneidar via use-livecode wrote:
Someone needs to update the dictionary then.
set the wholeMatches to {true | false}
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
lineOffset("local*tFunction", tText) will only match
local tFunction
and not
local someThing, tFunction, somethingElse

Mark Wieder
ahsoftware at<mailto:ahsoftware at>

More information about the use-livecode mailing list