in reply to regex problem
You want something like /(.*?)\s+(.*)/, or perhaps /(\S+)\s+(.*)/. Better yet, use split(). my ($ng, $desc) = split ' ', $record, 2;
_____________________________________________________
Jeff[japhy]Pinyan:
Perl,
regex,
and perl
hacker.
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: regex problem
by Anonymous Monk on Jan 10, 2002 at 00:44 UTC |