From: mauch AT uni-duisburg DOT de (Michael Mauch) Newsgroups: comp.os.msdos.djgpp Subject: Re: DJGPP regex - how does it work? Date: Fri, 05 Sep 1997 17:13:57 +0200 Organization: Home, sweet home (via Gesamthochschule Duisburg) Lines: 17 Message-ID: <34110e06.25539771@news.uni-duisburg.de> References: <5und1g$l9o$2 AT news-hrz DOT uni-duisburg DOT de> NNTP-Posting-Host: ppp61.uni-duisburg.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk On Fri, 05 Sep 1997 00:34:28 +0200, mauch AT uni-duisburg DOT de (Michael Mauch) wrote: > I tried to use the functions regcomp() and regexec() from DJGPP's > regex.h, but obviously I'm plain too dumb to get these things to work. I obviously _was_ too dumb to see that I should have used r = regexec(®ex,strRegex,1,pMatch,eFlags | REG_TRACE); ^^^ strString here instead of strRegex. Embarassing. Thanks to Dave Pearson who answered by mail and sent me a working example source, without which I would not have found my bug. Regards... Michael