Community
    • Login

    Find and Replace

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    21 Posts 5 Posters 10.7k Views 2 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.
    • TanquenT Offline
      Tanquen @PeterJones
      last edited by

      @peterjones said in Find and Replace:

      you might want to change to [^,\r\n]* for this token to avoid grabbing newlines as well

      Not sure what the issue is. For this file type the template and header rows do not end with a comma. The first field doesn’t start with a comma but that seems to be ok as it sees it correctly as a tag and stops at the first comma. So far, these rows also always end with a comma.

      If two lines where like this and did not end in a comma and ended with a tag:

      DFO_129,S9_Filters,Default,XV_195401,DFO_129
      CD_132,S9_Filters,Default,XV_195401,CD_132
      

      I could maybe endup with this?

      DFO_129CD_132
      

      I think I’m ok, it seems to work and all the rows with tags end with a comma and if they did not the result would jump out at me, maybe.

      Is there any easy way to stop at the comma but not include it? Seen some examples using Find and Replace to remove an end character but not just in the find expression for marking.

      1 Reply Last reply Reply Quote 0

      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