[Chicago-talk] Regular expression

Young, Darren Darren.Young at ChicagoGSB.edu
Wed Feb 6 11:14:08 PST 2008


I've tested it on a couple of other clusters and found it's not fixed
width.

> -----Original Message-----
> From: Randal L. Schwartz [mailto:merlyn at stonehenge.com]
> Sent: Wednesday, February 06, 2008 12:51 PM
> To: Young, Darren
> Cc: chicago-talk at pm.org
> Subject: Re: [Chicago-talk] Regular expression
> 
> >>>>> "Young," == Young, Darren <Darren.Young at ChicagoGSB.edu> writes:
> 
> Young,> Need some help on a regular expression... I've always been
> horrible at
> Young,> regex's with spaces. Have the output from a Windows cluster
> command that
> Young,> looks like this:
> 
> Young,> Group                Node            Status
> Young,> -------------------- --------------- ------
> Young,> Cluster Group        GSBDHCL2        Online
> 
> For fixed-width columns, a better solution is unpack() rather
> than a regex.
> 
> --
> Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777
> 0095
> <merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
> See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl
> training!


More information about the Chicago-talk mailing list