On Wed, Mar 23, 2005 at 04:26:31PM -0800, Andrew P. Lentvorski, Jr. wrote: > > On Mar 23, 2005, at 2:59 PM, Brian Deacon wrote: > > >The bigger problem is the repeating of "crazy". What would be the > >coolest would be if regex would let me variablize the "crazy" regex and > >then let me refer to it later. > > I think you can, but I'm not sure you want to. > > IIRC, Perl has a syntax where you can tuck an earlier match into a > named variable and use it again later in the same expression. This, of > course, means that you can no longer compile the expression since it > now has a run time component. > In the interests of peace, I shall refrain from mentioning the non-Perl language this is implemented in. :)
> It's Perl. Remember, TMTOWTDI. Had to google that one. :) Perhaps some equivalent of "delimiter required except after the last one?" Or "delimiter not required if there's nothing but white space and EOL coming next?" Still hmmm.... B -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
