• Login
Community
  • Login

Find quotes and backslash

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
7 Posts 3 Posters 2.5k 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.
  • M
    Mária Csabai
    last edited by Nov 17, 2018, 1:39 PM

    Hi,
    I would like to use Find & Replace the following database texts:

    userid=“NewPC\User\Maya”
    userid=“Computer\Home”
    userid=“XP\Admin”
    .
    .
    .
    . etc.

    only to: userid=“Private_001”

    The creationid=backslash"[\w ]*backslash" regex command is not good, because i cant find backslash instances. (backslash is missing here in view mode)

    I now that the finding method is tricky, i would like you to help me.

    S 1 Reply Last reply Nov 17, 2018, 2:01 PM Reply Quote 0
    • S
      Scott Sumner @Mária Csabai
      last edited by Nov 17, 2018, 2:01 PM

      @Mária-Csabai

      You could find your desired text with a regular expression in the Find-what zone of:

      userid=“(NewPC\\User\\Maya|Computer\\Home|XP\\Admin)”

      Hope that helps you…

      BTW I have no idea what The creationid=backslash"[\w ]*backslash" regex command is not good, because i cant find backslash instances. (backslash is missing here in view mode) means…

      1 Reply Last reply Reply Quote 1
      • M
        Mária Csabai
        last edited by Nov 17, 2018, 8:46 PM

        Dear Scott,
        first thank you for your quick help!

        The merged code works perfectly!

        But, there are approx. 46 users in 270000 lines and therefore should i combine the solution with the * joker character :-)

        Sincerely, Maya

        S R 2 Replies Last reply Nov 17, 2018, 9:46 PM Reply Quote 0
        • S
          Scott Sumner @Mária Csabai
          last edited by Nov 17, 2018, 9:46 PM

          @Mária-Csabai said:

          But, there are approx. 46 users in 270000 lines and therefore should i combine the solution with…

          I can’t tell if you still have a problem you need help with or not… :-(

          M 1 Reply Last reply Nov 18, 2018, 11:03 AM Reply Quote 0
          • R
            rinku singh @Mária Csabai
            last edited by Nov 18, 2018, 3:39 AM

            @Mária-Csabai you can send private link of file for more help

            1 Reply Last reply Reply Quote 0
            • M
              Mária Csabai @Scott Sumner
              last edited by Nov 18, 2018, 11:03 AM

              @Scott-Sumner
              Dear Scott, thank you for your help, it worked really well.
              I am a beginner and this task is complex, I need to learn the regex commands.
              I do not want to ask, first, I look carefully at the problem.
              Thanks, and if you can, I’ll ask you more.

              1 Reply Last reply Reply Quote 1
              • M
                Mária Csabai
                last edited by Nov 18, 2018, 3:13 PM

                Dear Friends,
                with the specified search criteria, userid=“(NewPC\User\Maya|Computer\Home|XP\Admin)”
                I could replace all users. There were only 21 variations and I could find it and type it.

                Thanks again for everyone!

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