E
E
EvgenyJozef30002019-02-24 12:47:38
Regular Expressions
EvgenyJozef3000, 2019-02-24 12:47:38

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

1 answer(s)
E
EvgenyJozef3000, 2019-02-24
@EvgenyJozef3000

Already found a solution:
Looking for: (\d+)
Replace with: \1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question