How to replace any text between some text without specifics
-
So I am editing a mod for a game called Star Wars empire at war on pc. I need help understanding how to replace text between text all at once
(Ex.)I want to replace all <Tactical_Build_Time_Seconds>10</Tactical_Build_Time_Seconds> the ten in the middle I want to replace to a 1. However here is the issue. A lot of files have different numbers like <Tactical_Build_Time_Seconds>3.75</Tactical_Build_Time_Seconds> and <Tactical_Build_Time_Seconds>75</Tactical_Build_Time_Seconds> so how do I go about changing all of the numbers between all of the <Tactical_Build_Time_Seconds></Tactical_Build_Time_Seconds> at once? please and thank you. -
Our FAQ: Generic Regular Expression (regex) Formula page has links to replacing in a specific zone of text, and the related replacing a complete hierarchy between an opening XML/HTML tag and its corresponding closing tag (which would help if you had nested XML tags, though I don’t think you do). Most likely, the “zone of text” formula will give you what you need.
Though, really, with as simple as yours is, the regular expression search
<Tactical_Build_Time_Seconds>\d*\.?\d*</Tactical_Build_Time_Seconds>should be enough for the FIND WHAT -
@PeterJones Very much appreciate this, you saved me a lot of time
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