in reply to Re^2: remove specific data from a line
in thread remove specific data from a line

Given those examples, there might be a few ways to do this -- either try to match from the start of the string:
s/abc\w+\s+\w+(?:, *\w+)\s+//; # match and remove unwanted initial co +ntent
or else just look for what you want to keep at the end:
s/.*\s(\w+\s+\w+)$/$1/; # match desired end content and remove everyt +hing before it
And of course, if you know in advance how those last two tokens are spelled, you could even use rindex() and substr():
$_ = substr( $_, rindex( $_, 'yuio jklh' ));

Replies are listed 'Best First'.
Re^4: remove specific data from a line
by Anonymous Monk on Feb 03, 2006 at 10:06 UTC
    Thank for answer but not quite what I look for. This  s/abc\w+\s+\w+(?:, *\w+)\s+//; only work correct on last line of my example.
    I'm not able to use second or third option you supply because I do not know what end of line hold only what beginning of line look like. See my reponse to Roy Johnson. Thanks