There is a big text. The task is to replace the ALL line with a certain word through reg. expressions in Notepad ++ add tags to the same.

Here is a piece of text.

Characteristics of the work. Drilling of holes with hand and core drills, electric drills, points, hand drills.

When drilling bore-holes manually - 3rd grade;

when drilling holes with hand and core drills and electric drills weighing up to 35 kg

And it is necessary to look (tags added):

<a> Characteristics of work. Drilling of holes with hand and core drills, electric drills, points, hand drills. </a>

When drilling bore-holes manually - 3rd grade;

when drilling holes with hand and core drills and electric drills weighing up to 35 kg

And so in each paragraph of this large text, must find a line with the Характеристика работ and change.

I can not select the entire line, it turns out either the whole text or only the characteristic of the work

Closed due to the fact that off-topic participants Mikhail Vaysman , Kromster , MihailPw , Alexey Shimansky , Grundy 12 Jul '17 at 12:37 .

It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:

  • "The message contains only the text of the task, in which there is no description of the problem, or the question is purely formal (" how do I do this task ") . To reopen the question, add a description of the specific problem, explain what does not work, what you see the problem. " - Mikhail Vaysman, MihailPw, Grundy
If the question can be reformulated according to the rules set out in the certificate , edit it .

  • The message contains only the text of the task, in which there is no description of the problem, or the question is purely formal (“how do I do this task”). Add a description of a specific problem, explain what exactly fails, what you see the problem. - Mikhail Vaysman
  • You have VK or Skype, I can’t explain the essence of the task here, do not be lazy to help figure it out - Alexander
  • one
    Alexander, yes no, you are not too lazy. Answer questions specifying, for example. Through messengers do not work here - the question and answers should be accessible to all. - Nick Volynkin
  • one
    @ Alexander it is easy to learn regular expressions in an hour and a half. For example, here: regexone.com - Nick Volynkin
  • one
    @ Alexander, you are not a freelance exchange for free. - MihailPw

1 answer 1

enter image description here

 (Характеристика работ.*).*$ <a>\1</a> 
  • It doesn’t fit, the whole text is highlighted, in general it’s not difficult to put a tag before the characteristic, but it’s impossible to add it at the end. All you need to do is to select an ALL line with the word Characterization of Work, but so that I do not do two options, or only the characteristic of the work or the entire huge text is - Alexander
  • Updated ...... - codename0082016
  • All the same, I’ll highlight all the text why, but you are very close, it seems, I also introduced something like that, but I’ve got everything in a circle - Alexander
  • And not all thanks buddy !!! It seems to work out - Alexander
  • @Alexander, accept the answer by clicking on the check mark to the left of it. - Qwertiy