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 }
In reply to Re: remove specific data from a line
by idle
in thread remove specific data from a line
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |