Community

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

    Keep only last word of each line

    Help wanted · · · – – – · · ·
    2
    2
    139
    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.
    • Vinc Cser
      Vinc Cser last edited by

      Hello, can someone help me fin a reg expression to keep only last word of each line in account format?
      Example :
      sharirachel:K7LOQ0PY0UNI:gqspejsmk6j0f39li4z5pxxvt6xonk

      gqspejsmk6j0f39li4z5pxxvt6xonk

      Thanks in advance

      Alan Kilborn 1 Reply Last reply Reply Quote 0
      • Alan Kilborn
        Alan Kilborn @Vinc Cser last edited by

        @Vinc-Cser

        Find: (?-s)^.*?(\w+)$
        Replace: ${1}
        Search mode: Regular expression

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