On 2013-08-05 10:58, David Cantrell wrote:
On Sun, Aug 04, 2013 at 03:28:23PM -0400, Shawn H Corey wrote:
On Sun, 04 Aug 2013 14:13:59 -0500
Brian Katzung <bri...@kappacs.com> wrote:
That's an interesting idea, but I'm not sure you're accomplishing
your stated goals. Consider that the RE /^\s*test\s*$/ is 14
characters and you've coded it in 91 non-white-space characters (650%
of the original size).
The difference is between writing machine code and writing assembler.
The goal is not to create readable REs but to make it easier to create
them.
The difference is also between getting the regex right or not. The
line-noise version above is case sensitive, unlike the OP's example.
Good point. I read the OP's example and understood it to be case-insensitive, but even having seen it spelled out still didn't protect me from forgetting the detail (a "broken understanding") later. :-)

--
Brian Katzung, Kappa Computer Solutions, LLC
Software development and mixed operating system support
for business, education, and science
Phone: 847.412.0713  http://www.kappacs.com

Reply via email to