<HEAD><TITLE>discuss@charon: [1262] in "Coldmud discussion meeting"</TITLE>
<H1>[1262] in Coldmud discussion meeting</H1></HEAD>
<A HREF="/"><IMG SRC="/i-d.gif" ALT="root"></A>
<A HREF="?1262"><IMG SRC="/i-back.gif" ALT="meeting"></A>
<A HREF="/help.html"><IMG SRC="/i-help.gif" ALT="help"></A>
<A HREF="1"><IMG SRC="/i-first.gif" ALT="first"></A>
<A HREF="1260"><IMG SRC="/i-fref.gif" ALT="first in chain"></A>
<A HREF="1261"><IMG SRC="/i-pref.gif" ALT="previous in chain"></A>
<A HREF="1261"><IMG SRC="/i-prev.gif" ALT="previous"></A>
<A HREF="1263"><IMG SRC="/i-next.gif" ALT="next"></A>
<A HREF="1263"><IMG SRC="/i-nref.gif" ALT="next in chain"></A>
<A HREF="1269"><IMG SRC="/i-lref.gif" ALT="last in chain"></A>
<A HREF="1641"><IMG SRC="/i-last.gif" ALT="last"></A>
<HR><H2>Re: [COLD] match_regexp bug...</H2>
<H3>daemon@ATHENA.MIT.EDU (Mon Mar 31 17:20:26 1997
)</H3>
<PRE>
From: silovic@srce.hr (Miroslav Silovic)
In-Reply-To: &lt;3.0.32.19970331134545.00685554@mail.tenetwork.com&gt; 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

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

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

</PRE>
