Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    How to put words into expressions?

    Help wanted · · · – – – · · ·
    replace expressions help me please replace window
    2
    3
    1636
    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 To
      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 Sumner 1 Reply Last reply Reply Quote 0
      • Scott Sumner
        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 To
          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
          Copyright © 2014 NodeBB Forums | Contributors