Community
    • Login

    Search & Replace syntax

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    1 Posts 1 Posters 23 Views 1 Watching
    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.
    • K Online
      KRadiants
      last edited by

      Hello, I am trying to find and replace but I’m having trouble with it as I’m not good at computers.

      Here is the data I currently have (“before” data):

      SelectSpells(c213ca01-3767-457b-a5c8-fd4c1dd656e2,1,1)
      

      Here is how I would like that data to look (“after” data):

      SelectSpells(c213ca01-3767-457b-a5c8-fd4c1dd656e2)
      

      Sometimes there is something after the two digits. What I need to delete are the two digits so that it looks like this at the end

      SelectSpells (StringsOfNumbers)
      

      To accomplish this, I have tried using the following Find/Replace expressions and settings

      • Find What = SelectSpells[^>]\d,\d
        SelectSpells[^],[0-9],[0-9]
        SelectSpells[\a+][\d 0-9],[\d 0-9]
        And many more I don’t remember
      • Replace With = None yet.
      • Search Mode = Regular Expression
      • Dot Matches Newline = I don’t know what that is, sorry

      I thought it would work because my friend who’s better at computer thought it would as we’re checking the user manual, but we’re stumped

      I’d appreciate any help, thanks

      1 Reply Last reply Reply Quote 0

      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
      • First post
        Last post
      The Community of users of the Notepad++ text editor.
      Powered by NodeBB | Contributors