How to remove everything after a certain character? (notepad++) December 23, 2023 by Tarik Do a find replace (replacing with nothing) this regex: \|.* See https://regexr.com/3rq9m for explanation.