Community
    • Login

    Need help please

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 3 Posters 278 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.
    • Wahlla MaglaW
      Wahlla Magla
      last edited by

      say for exapmple I have this
      user:email:pass
      user:email:pass
      I want to extract email:pass from every line to be like this
      email:pass
      email:pass

      PeterJonesP Terry RT 2 Replies Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @Wahlla Magla
        last edited by

        @wahlla-magla ,

        I am on my phone, so cannot verify, but it would be something like ^.*?: and replace with nothing, in regular expression mode

        (This means search from beginning of the line and any characters up to and including the first colon, and replace with nothing. The Read This Post First and FAQ section will provide links to more info on regular expression search/replace)

        1 Reply Last reply Reply Quote 0
        • Terry RT
          Terry R @Wahlla Magla
          last edited by Terry R

          @wahlla-magla said in Need help please:

          I want to extract email:pass from every line to be like this

          @PeterJones had the right idea, it’s always difficult when not actually able to test a solution and in this case his will actually erase both user and email fields.
          Instead try
          Find What:(?-s)^.*?:(.+\R?)
          Replace With:\1

          As it’s a regular expression you must have the search mode set to regular expression.

          Terry

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