From: Logan Capaldo Date: 2006-03-11T02:34:09+09:00 Subject: Re: Small regexp question --Apple-Mail-35-496073858 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed On Mar 10, 2006, at 10:08 AM, Pistos Christou wrote: >> /^\s*class\s+(\w+)\s*[^;]/ This would match: "class A ;" for instance \s* can match the empty string which is followed by a space which is not a semi-colon, so hey it matches! --Apple-Mail-35-496073858--