in reply to remove specific data from a line
Updated. Oh I see you need to remove the line until the last option. Heres the code:if $line =~ /^myword.*$/ { $line =~ s/$&//g }
if $line =~ /(^myword.*option\d+\s+).*$/ { $line =~ s/$1//g }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: remove specific data from a line
by Anonymous Monk on Feb 02, 2006 at 15:36 UTC | |
by graff (Chancellor) on Feb 03, 2006 at 03:17 UTC | |
by Anonymous Monk on Feb 03, 2006 at 10:06 UTC |