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