in reply to Re: remove specific data from a line
in thread remove specific data from a line
It print outabcefgh qwerty, asdfg yuio jklh
I had to add extra slash to your code like thisasdfg yuio jklh
otherwise got errors. I hope this was what you mean. I try to change your code to handle last line which don't leave just yuio jklh.$line =~ s/^abc\w+\s+\S+(?:,\s*\S+)*//x;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: remove specific data from a line
by Roy Johnson (Monsignor) on Feb 03, 2006 at 18:29 UTC |