Re: A Friday Regex Head Scratcher

[email protected]
Newsgroups gmane.user-groups.linux.ottawa.general
Message-ID <[email protected]>
On Tue, Apr 21, 2009 at 11:53:31AM -0400, Jon Earle wrote:
> Oh, I see... for every program (ie: .pl file), a single $& affects every
> regex that could potentially be encountered in that program, whereas $1
> affects only the specific regex in which it's used, in which case, Dave's
> suggestion of using $1 optimizes performance of the entire program (or
> rather, prevents performance degradation of the entire program).  Is that
> correct?

	'xactly. :-)

> > 	Excellent.  I was half afraid you'd take a look at the regex, turn
> > green, and immediately proceed to format your hard-drive. :-)
> 
> Well, I admit, on Fri afternoon, I tried to decipher it and closed it in
> fear. :)  A fresh look on Monday made it all come together.


	And in the end it proved to be an educative ride.  So it was all
worth it. :-)

Joy,
`/anick
-- 
OCLUG general discussion list
[email protected]
http://oclug.on.ca/mailman/listinfo/oclug
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.