RegExp to match against RegExp's

"whiskey" <alex.habar.nam@gmail.com>
1 Mar 2007 01:08:36 -0500

          From comp.compilers

Related articles
RegExp to match against RegExp's alex.habar.nam@gmail.com (whiskey) (2007-03-01)
Re: RegExp to match against RegExp's JoelCSalomon@Gmail.com (Joel C. Salomon) (2007-03-03)
Re: RegExp to match against RegExp's rsc@swtch.com (Russ Cox) (2007-03-05)
Re: RegExp to match against RegExp's dickey@saltmine.radix.net (Thomas Dickey) (2007-03-08)
Re: RegExp to match against RegExp's alex.habar.nam@gmail.com (whiskey) (2007-03-14)
| List of all articles for this month |
From: "whiskey" <alex.habar.nam@gmail.com>
Newsgroups: comp.compilers
Date: 1 Mar 2007 01:08:36 -0500
Organization: Compilers Central
Keywords: lex, question
Posted-Date: 01 Mar 2007 01:08:36 EST

Hello


I'm not sure I'm in the right place, however my question is somehow
related to an interpreter. Not a "must do", rather a "wanna know". So,
my question is: how would a regular expression that matches a regular
expression look like ?


Given a string like "$myFoo =~ /regexp/" *, I want to match the /
regexp/ part. I can't just use something like /\/[^\/]*\// because my /
regexp/ can be /^http:\/\// and it will only return "/^http:/".


* no, I'm not writing a Perl interpreter :-)



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.