How can i bulk change this
-
Hi, i have this section that repeats throught the file: <my_score>2</my_score>
i want to change the number that is in the middle to a 0. How can i do that -
@Michael-Vv said in How can i bulk change this:
<my_score>2</my_score>
As stated, it’s quite simple
FIND =
<my_score>2</my_score>
REPLACE =<my_score>0</my_score>If you want a different answer, then you’d better ask again, with more details.
-—
Useful References
-
@PeterJones not exactly what i wanted, but i managed anyway since the number in the middle only goes from 1 to 10. But if i had a greater range of numbers how would i do this?
-
I couldn’t tell from your original post whether it would be just the number that would be different (which I was guessing), or whether it would also be the tag text in some way. And whether other requirements would pop up as I kept giving answers. So I gave the most simplistic one, to try to convince you that you needed to provide actual information if you wanted a reasonable answer.
Given you said “greater range of numbers”, then
- FIND =
<my_score>\d+</my_score> - REPLACE =
<my_score>0</my_score> - SEARCH MODE = Regular Expression
The
\dmeans “any digit character”. And+means “one or more”. So it will match one or more digits, and replace them all with a single0. - FIND =
-
@PeterJones thanks man, you helped me a lot!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login