in reply to Delete till end of line to another string

This node falls below the community's minimum standard of quality and will not be displayed.
  • Comment on Re: Delete till end of line to another string

Replies are listed 'Best First'.
Re^2: Delete till end of line to another string
by rovf (Priest) on Aug 18, 2009 at 11:04 UTC

    This would erase every > - not what the OP wanted.

    -- 
    Ronald Fischer <ynnor@mm.st>
Re^2: Delete till end of line to another string
by saranperl (Initiate) on Aug 19, 2009 at 06:10 UTC
    $_ =~ m/\{/g; $str = $`; $str1=$'; $str=~ s/\>//g; print $str."{".$str1;