Community
    • Login

    Find and Replace

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    21 Posts 5 Posters 3.3k 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.
    • TanquenT
      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
      • First post
        Last post
      The Community of users of the Notepad++ text editor.
      Powered by NodeBB | Contributors