Navigation

    Community

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

    Need help please

    Help wanted · · · – – – · · ·
    3
    3
    72
    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 Magla
      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

      PeterJones Terry R 2 Replies Last reply Reply Quote 0
      • PeterJones
        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 R
          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
          Copyright © 2014 NodeBB Forums | Contributors