Answer the question
In order to leave comments, you need to log in
How to replace a word in a string, provided that this string contains a specific word?
Good afternoon! There was a small problem. I was given a large .xml file, where I have to change the name of the element in the lines, provided that there is a certain word in this line.
For example.
The line is given: 1 It is
necessary to change column to uf_vid
Condition: the content of the expression name="venhicle_id"
1 - the number changes.
How to do it in NotePad++?
Answer the question
In order to leave comments, you need to log in
Already found a solution:
Looking for: (\d+)
Replace with: \1
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question