• Login
Community
  • Login

How to put words into expressions?

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
replaceregexhelpreplace window
3 Posts 2 Posters 1.9k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G
    Ge To
    last edited by Mar 31, 2017, 6:09 PM

    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?

    S 1 Reply Last reply Mar 31, 2017, 6:17 PM Reply Quote 0
    • S
      Scott Sumner @Ge To
      last edited by Mar 31, 2017, 6:17 PM

      @Ge-To

      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

      1 Reply Last reply Reply Quote 0
      • G
        Ge To
        last edited by Mar 31, 2017, 6:31 PM

        Sorry for not giving many detail, but thank you!

        1 Reply Last reply Reply Quote 1
        3 out of 3
        • First post
          3/3
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors