Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!columbia!read.columbia.edu!kearns From: kearns@read.columbia.edu (Steve Kearns) Newsgroups: comp.lang.c Subject: Re: regex for C comments Message-ID: <6396@columbia.edu> Date: 11 Jul 89 02:08:52 GMT References: <19365@paris.ics.uci.edu> <4626@omepd.UUCP> Sender: news@columbia.edu Reply-To: kearns@read.UUCP () Distribution: na Organization: Columbia University Department of Computer Science Lines: 20 A previous article claimed that >| ---------------------------------------- >| "/*""/"*([^*/]|[^*]"/"|"*"[^/])*"*"*"*/" >| ---------------------------------------- does not match > /***/ >(This one was easy. :-) A guess it was not so easy. "/***/" does indeed match the above regular expression: "/*""/"*([^*/]|[^*]"/"|"*"[^/])*"*"*"*/" 0 0 1 Under each star I have listed how many times it iterates to match "/***/". -steve