How to remove lines starting with specific character? John Castro | May 02, 2026 I need to remove all lines starting with number 8. My document contains few hundred lines. All starting with the number 8 need to be removed. 1 Answer Go to "Search" -> "Replace" and check the "Regular Expression" on:^[8].*replace with " " 1 Your Answer Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Submit Post as a guest Post as a guest Post Your Answer Discard By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy