From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu Subject: Re: [9fans] more questions From: rog@vitanuova.com MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Message-Id: <20010328101459.DF9E1199C0@mail.cse.psu.edu> Date: Wed, 28 Mar 2001 11:21:08 +0100 Topicbox-Message-UUID: 75bf8f1e-eac9-11e9-9e20-41e7f4b1d025 i've been bitten by that regexp problem before. your problem is that the matches array is being used uninitialised. as the documentation says: If match[0].sp is nonzero on entry, regexec starts matching at that point within string. If match[0].ep is nonzero on entry, the last character matched is the one preceding that point. in a larger program, your code would probably have broken... and then you'd probably have found the problem! cheers, rog.