Community

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

    Help with Replace

    Help wanted · · · – – – · · ·
    2
    2
    259
    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.
    • Tom Wak
      Tom Wak last edited by

      I have strings like this:

      string1:string2:string3

      and on each line, i want to remove “:string3”, is there any way to do that?

      Ekopalypse 1 Reply Last reply Reply Quote 0
      • Ekopalypse
        Ekopalypse @Tom Wak last edited by

        @Tom-Wak

        with the provided data I would assume that something like
        find: (?-s)(\w+:\w+):\w+(?=.*)
        replace: \1
        should do the job.

        1 Reply Last reply Reply Quote 1
        • First post
          Last post
        Copyright © 2014 NodeBB Forums | Contributors