in reply to Need help with regex to replace 4th \s with \n in data line
while ($name =~ /\s/g) { substr($name, $-[0], 1, "\n") if ++$i % 4 == 0; pos($name) = $-[0] + 1; }
_____________________________________________________
Jeff[japhy]Pinyan:
Perl,
regex,
and perl
hacker, who'd like a job (NYC-area)
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;
|
|---|