Just for starters, you can't simply plug someone else's regex (cf: Cargo Cult) into an script to process utterly unrelated data and expect it to be anything other than "wrong."
Your (borrowed) substitution looks for the word "line" followed by one-or-more digits, followed by anything, capturing the last of those. That's not the way your latest version of the data is structured. Since there isn't the word "line" anywhere in the data, the regular expression never matches.
As linuxer advises "(p)lease see perlretut, perlrequick and perlre for more information about regular expressions."
And to repeat myself, you need to be a great deal more precise in stating the problem. The use of "blah1.blah1.blah1" and so on as a stand-in for some actual data may be adequate to solve the question you asked, but is likely insufficient for us to provide help that will assist you to solve whatever your actual problem may be.
In reply to Re^2: how to delete part of the line?
by ww
in thread how to delete part of the line?
by yskmonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |