Re: Should the scope of WholeMatches be expanded?
There is already truewordOffset available but you have to check whether the search string is the next trueword. So matchChunk is faster. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Should the scope of WholeMatches be expanded?
Hi. Not sure, because I have never used one, but would a "trueWordOffset" help? Craig -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Should the scope of WholeMatches be expanded?
On 8/8/2019 5:18 PM, Dr. Hawkins via use-livecode wrote: On Aug 5, 2019, at 7:43 AM, Paul Dupuis via use-livecode wrote: I'd like to see wholeMatches apply to: Gee, that would do just what I need in searches . . . and the check is already there, and applies in the IDE search/replace feature . . . hmmm . . . set the whole matches to true repeat while wordOffset(searchText, theSearchStrng) > 0 put replacmentText into word wordOffset(searchText, theSearchStrng) of theSearchString end repeat Except in the replacement searching I'd like to do, I am searching and replacing phrases bounded by white space (tab, space, non-breaking space, line break, etc.) so wordOffset will not work for me. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Should the scope of WholeMatches be expanded?
On Aug 5, 2019, at 7:43 AM, Paul Dupuis via use-livecode wrote: > > I'd like to see wholeMatches apply to: Gee, that would do just what I need in searches . . . and the check is already there, and applies in the IDE search/replace feature . . . hmmm . . . set the whole matches to true repeat while wordOffset(searchText, theSearchStrng) > 0 put replacmentText into word wordOffset(searchText, theSearchStrng) of theSearchString end repeat ??? — Richard E. Hawkins, Esq. The Hawkins Law Firm 3430 E. Flamingo Rd. Suite 232 Las Vegas, NV 89121 (702) 508-8462 ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode