Community
    • Login

    Copy and replace text question

    Scheduled Pinned Locked Moved General Discussion
    2 Posts 2 Posters 378 Views 1 Watching
    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 Offline
      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 Offline
        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

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors