Community
    • 登入

    Deleting a character fro the same place (end of line)

    已排程 已置頂 已鎖定 已移動 General Discussion
    edit delet eol
    3 貼文 2 Posters 212 瀏覽
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • Frankie DeschachtF
      Frankie Deschacht
      最後由 編輯

      Hello,
      I have a file (CSV) with a good few 1000 records in it.
      My problems is, I need to get rid of a semicolon character at the end of all lines.

      Is there any possibility of doing that in NPP, thus avoiding having to do it by hand one line by one?

      Your help will be much appreciated.

      PeterJonesP 1 條回覆 最後回覆 回覆 引用 0
      • PeterJonesP
        PeterJones @Frankie Deschacht
        最後由 PeterJones 編輯

        @Frankie-Deschacht ,

        FIND = ;$ (the $ means “end of line”, not the literal character, in a regular expression)
        REPLACE = emtpy
        SEARCH MODE = regular expression

        ----

        Do you want regex search/replace help? Then please be patient and polite, show some effort, and be willing to learn; answer questions and requests for clarification that are made of you. All example text should be marked as plain text using the </> toolbar button or manual Markdown syntax. Screenshots can be pasted from the clipboard to your post using Ctrl+V to show graphical items, but any text should be included as literal text in your post so we can easily copy/paste your data. Show the data you have and the text you want to get from that data; include examples of things that should match and be transformed, and things that don’t match and should be left alone; show edge cases and make sure you examples are as varied as your real data. Show the regex you already tried, and why you thought it should work; tell us what’s wrong with what you do get… Read the official NPP Searching / Regex docs and the forum’s Regular Expression FAQ. If you follow these guidelines, you’re much more likely to get helpful replies that solve your problem in the shortest number of tries.

        1 條回覆 最後回覆 回覆 引用 1
        • Frankie DeschachtF
          Frankie Deschacht
          最後由 編輯

          Peter Jones,
          That is brilliant.
          Thank you ever so much.
          You solved a HUGE problem for me.

          1 條回覆 最後回覆 回覆 引用 2
          • 第一個貼文
            最後的貼文
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors