From netawater at gmail.com Fri Jul 24 03:18:53 2009 From: netawater at gmail.com (Xiangjun Wu) Date: Fri, 24 Jul 2009 11:18:53 +0800 Subject: [cl-ppcre-devel] report a bug In-Reply-To: References: <6f8d23640906260746r20db5dbaheddaa7524bade17b@mail.gmail.com> Message-ID: <6f8d23640907232018j4fc65461u906fe5169e730c01@mail.gmail.com> ?????????? On Sat, Jun 27, 2009 at 2:17 AM, Chris Dean wrote: > > Xiangjun Wu writes: > > (cl-ppcre:scan > > (cl-ppcre:create-scanner > > "(_\\w+)*\\@\\w+") > "______________________________________" > > :start 0) > > > > > Perhaps > > (cl-ppcre:create-scanner "(_[_\\w]+)?@\\w+") > > will work for your app? The problem in the original expression is the > "+" followed by the "*" can lead to a combinatorial explosion. > > If you loosen the requirement that all non-zero matches in the first > expression must begin with an "_" you could have: > > (cl-ppcre:create-scanner "[_\\w]*@\\w+") > > Cheers, > Chris Dean > > _______________________________________________ > cl-ppcre-devel site list > cl-ppcre-devel at common-lisp.net > http://common-lisp.net/mailman/listinfo/cl-ppcre-devel > Thank you, it works for our application. -------------- next part -------------- An HTML attachment was scrubbed... URL: