|RegExp to match against RegExp's email@example.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 firstname.lastname@example.org (Russ Cox) (2007-03-05)|
|Re: RegExp to match against RegExp's email@example.com (Thomas Dickey) (2007-03-08)|
|Re: RegExp to match against RegExp's firstname.lastname@example.org (whiskey) (2007-03-14)|
|Date:||1 Mar 2007 01:08:36 -0500|
|Posted-Date:||01 Mar 2007 01:08:36 EST|
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 :-)
Return to the
Search the comp.compilers archives again.