On Fri, 25 May 2001, Jeff Pinyan wrote: > I tried for an hour and a half or so to craft a regex that matches itself, > and ONLY itself. > > I came up with nothing -- well, several dead ends at least. What are the constraints? If embedding Perl code is allowed, I'd say the problem essentially reduces to constructing a quine. (No, I don't have the time to attempt a solution just now..) -- Ilmari Karonen - http://www.sci.fi/~iltzu/ "Good question. I don't think anyone here knows, but it seems like the sort of thing that might be explained in the manual." -- Mark-Jason Dominus in comp.lang.perl.misc ==== Want to unsubscribe from Fun With Perl? Well, if you insist... ==== Send email to <fwp-request@technofile.org> with message _body_ ==== unsubscribe