Deleting Sections
-
How can I replace them all
can_upgrade_trigger = {
OR = {
culture = roman
religion_group = pagan
}
}with the one below.
can_upgrade_trigger = {
}There are many and everyone has a different kind of text in it. Just want to empty every one of them.
-
@Berkan ,
What is the “uniqueness” that will determine whether or not the contents get emptied? Is it "all containers that start with
can_upgrade_trigger =? Is it “all outermost containers”? Is it something else that I cannot guess? Because all of those have a different answer.Useful References
-
Hello, @berkan, @peerjones and All,
From your exact INPUT text, I would use the following regex S/R :
SEARCH
(?s-i)^can_upgrade_trigger.+?\{\R\K(.+?^\}\R)REPLACE
Leave EMPTY-
Tick the
Wrap aroundoption -
Select the
Regular expressionsearch mode -
Click once ONLY on the
Replace Allbutton ( Do not use theReplacebutton )
Best Regards,
guy038
-
-
@guy038 Thank you for your help. It worked perfectly
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