[1561] in Coldmud discussion meeting
Re: Matching strings
daemon@ATHENA.MIT.EDU (Fri Mar 10 20:01:48 2000
)
Date: Fri, 10 Mar 2000 17:26:12 -0700
From: Brandon Gillespie <brandon@roguetrader.com>
To: coldstuff@cold.org
In-Reply-To: <A0200A8D901CD311A51F0001C86523B135072F@MMSINET1>; from Adam Cormany on Thu, Mar 02, 2000 at 01:05:26PM -0500
Reply-To: coldstuff@cold.org
--bajzpZikUji1w+G9
Content-Type: text/plain; charset=us-ascii
On Thu, Mar 02, 2000 at 01:05:26PM -0500, 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
There are also two other ways:
stridx("insanity", "ity", -1)
match_regexp("insanity", "ity$")
-Brandon
--bajzpZikUji1w+G9
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
MessageID: 2Vq5zvEKAenBdDA3Lv1GGV2begUawbI2
iQA/AwUBOMmSo0v5XoQiMgn6EQJAKgCg5FCoMm+GeSyV265CSfGyMH1AKAkAnAyk
kUQ7Mn+5sObARJ5KSqYx7N9t
=AGZ2
-----END PGP SIGNATURE-----
--bajzpZikUji1w+G9--