I have too many records which ending as below :


But i wanted them to be replace to new line let say



Note text en and US are different in each records, the only item needed to be kept is "-". Please advise.

  • The only thing method i tried is replace with : \n. What do i have to input in "Find What : xx-xx||||" ? – Kenneth Lhv Sep 14 '12 at 5:34
  1. Press Ctrl+H (Find & Replace).

  2. Use those settings:

    • Search mode: Extended

    • Find what: |||||

    • Replace with: \n

  3. Replace.


User regular expression to find [a-zA-Z][a-zA-Z]-[a-zA-Z][a-zA-Z]|||| and replace \n

in Notepad++ 6, PCRE (Perl Compatible Regular Expressions) is supported. Here is Ref.

We should also referece another stackoverflow question. https://stackoverflow.com/questions/4398613/notepad-newline-in-regex

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.