How to put words into expressions?
-
I’m trying to edit a Crusader Kings 2 save file in one go. What I’m trying to do is to replace cul=“(some word here)” to cul=“italian”. It is a pretty lengthy process without expressions. Can someone help me with this, or it cannot be done?
-
That’s a pretty basic regular expression search and replace. Please read up on regular expressions on the internet for your future edification.
For the moment, something basic like this should get you going (although you didn’t give a huge amount of detail):
Find what box:
cul="\w+?"
Replace with box:cul="italian"
Search mode:Regular expression -
Sorry for not giving many detail, but thank you!
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