On Oct 30, Stephen LeClaire said: >Does anyone have a slick way to grab up these characters (\W) and slap >them into an array?
\W is not "non-whitespace". \S is non-whitespace. You probably just want to use split(): @fields = split ' ', $string; The ' ' argument to split() is magical, and tells split() to ignore any leading whitespace, and to split on multiple runs of whitespace /\s+/. -- Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/ ** Look for "Regular Expressions in Perl" published by Manning, in 2002 ** -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]