Last Updated: February 25, 2016
·
7.875K
· ashiguruma

RegEx to find a line containing certain words

Really useful RegEx for finding lines in a file you are editing. Especially useful for removing lines from JSON or CSV files.

^.*\bwords_to_find\b.*$

When I get a moment, I could really do with finding a way to remove the \n that is left behind when doing a find and replace.