[1557] in Coldmud discussion meeting

root meeting help first first in chain previous in chain previous next next in chain last in chain last

Re: Matching strings

daemon@ATHENA.MIT.EDU (Thu Mar 2 13:24:02 2000 )

Date: Fri, 03 Mar 2000 16:10:05 -0800
From: Bruce <bruce@puremagic.com>
To: coldstuff@cold.org
Reply-To: coldstuff@cold.org

> Adam Cormany wrote:
> 
> I've noticed match_begin to match incomplete arguments to a string,
> but only at the beginning of the string. Example:
> match_begin("insanity", "ins") would return true.
> 
> Is there any matching that matches incomplete arguments to a string,
> but at the end? Something like match_end("insanity", "ity")? Thanks

It won't be that fast, but you could just use:

match_begin(arg1.reverse(), arg2.reverse())

 - Bruce