poking around near the end of a string
richmondmathewson at gmail.com
Wed May 10 10:34:29 EDT 2017
On 10.05.2017 17:31, Klaus major-k via use-livecode wrote:
> Hi Richmond,
>> Am 10.05.2017 um 16:18 schrieb Richmond via use-livecode <use-livecode at lists.runrev.com>:
>> Suppose I have a string a bit like this:
>> "and then the gigantic monster bit my mother on the nose $W"
>> and I want to check that that string ends with "$W" . . .
>> I tried this (pseudo code):
>> *if the ((last char) & (last char -1)) of MNOSE = "$W"*
>> and it did not work.
> this does work:
> if MNOSE ends with "$W" then
> if char -2 to -1 of MNOSE = "$W" then
> Klaus Major
> klaus at major-k.de
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the Use-livecode