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.
    • Ge ToG
      Ge To
      last edited by

      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?

      Scott SumnerS 1 Reply Last reply Reply Quote 0
      • Scott SumnerS
        Scott Sumner @Ge To
        last edited by

        @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
        • Ge ToG
          Ge To
          last edited by

          Sorry for not giving many detail, but thank you!

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