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.
Written by Tom Loudon
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Regex
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#