Community
    • Login

    Copy and replace text question

    Scheduled Pinned Locked Moved General Discussion
    2 Posts 2 Posters 180 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.
    • Mike CaseyM
      Mike Casey
      last edited by

      Copy and replace text question.

      I hope this is the right place to post this question. please forgive me if its not .

      I have a form in plaint text and I am trying to delete some of the data in the lines and save only the part that is needed.

      Is there a way to save only the data after the the colon in my example? ideally It would look like Smith instead of 1. Last Name: Smith there are several fields but this is a good start. see my example below.

      1. Last Name: Smith

      2. First Name: John

      3. Middle initial: R

      Thank you

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

        @Mike-Casey said in Copy and replace text question:

        Is there a way to save only the data after the the colon in my example?

        Possibly. If this is a complete line then you would use a regular expression to capture from start of line until the first colon found. Then all these characters would be deleted.

        To give us a better understanding can you present complete lines in your next post. After inserting them, select them and click on the </> button above the posting window. This encapsulates the text within a black box and prevents the posting engine from possibly altering the text as it tries to format the post.

        Terry

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