[1262] in Coldmud discussion meeting

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

Re: [COLD] match_regexp bug...

daemon@ATHENA.MIT.EDU (Mon Mar 31 17:20:26 1997 )

From: silovic@srce.hr (Miroslav Silovic)
In-Reply-To: <3.0.32.19970331134545.00685554@mail.tenetwork.com> from Jeff Kesselman at "Mar 31, 97 01:45:48 pm"
To: jeffk@tenetwork.com (Jeff Kesselman)
Date: Tue, 1 Apr 1997 00:13:05 +0200 (MET DST)
Cc: coldstuff@cold.org

> match_regexp appears to get confused if there are square brackets in the
> string to be matched. My matching against the string "Class: []" throws a
> "umatched []" error.  In all other cases the match works fine.
> 
> JK
> 

Actually it's not a bug. When ']' appears right after the '[', it's assumed
to be part of the character list in a [] expresssion. This means that
[] is a syntax error (correct versions are []] or \[\], depending on what
you want to do).

	Miro