< BACK TO BLOG

Use a regular expression to remove lines without a word

Published Sun Feb 21 2021



select all other lines but ones with keyword

^(?!.pad.).+$

ref:https://stackoverflow.com/questions/7024214/how-to-use-a-regular-expression-to-remove-lines-without-a-word




Subscribe to my Newsletter

Get the latest posts delivered right to your inbox