Community

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

    Find quotes and backslash

    Help wanted · · · – – – · · ·
    3
    7
    1780
    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ária Csabai
      Mária Csabai last edited by

      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.

      Scott Sumner 1 Reply Last reply Reply Quote 0
      • Scott Sumner
        Scott Sumner @Mária Csabai last edited by

        @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ária Csabai
          Mária Csabai last edited by

          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

          Scott Sumner rinku singh 2 Replies Last reply Reply Quote 0
          • Scott Sumner
            Scott Sumner @Mária Csabai last edited by

            @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ária Csabai 1 Reply Last reply Reply Quote 0
            • rinku singh
              rinku singh @Mária Csabai last edited by

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

              1 Reply Last reply Reply Quote 0
              • Mária Csabai
                Mária Csabai @Scott Sumner last edited by

                @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ária Csabai
                  Mária Csabai last edited by

                  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
                  • First post
                    Last post
                  Copyright © 2014 NodeBB Forums | Contributors