From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <88f2fccf6f0ecb1a3924f8d37b52abf8@bellsouth.net> To: 9fans@9fans.net Date: Tue, 13 Jul 2010 10:37:53 -0500 From: blstuart@bellsouth.net In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] regexp doubt Topicbox-Message-UUID: 3ea99cb0-ead6-11e9-9d60-3106f5b1d025 > both of them yield a > > regexp: malformed `[]' > > error. > I forgot to mention and I had an alternative solution from the > beginning /stat[abc]?([ ;]|-)/ > I'm just wondering the reason the original version failed. As I recall, if you're going to include a hyphen in a character class, it has to be the first character so that it isn't taken to indicate a range. BLS