#
DIFF.BLOG
New
Following
Discover
Jobs
More
Top Writers
Suggest a blog
Upvotes plugin
Report bug
Contact
About
Privacy
Sign up
The home for great developer writing.
We surface the best developer writing from thousands of independent blogs, updated daily.
Join Diff.blog
TOPICS
Fitting a regular expression to a list of words
·
John Cook
·
July 19, 2026, 7:54 p.m.
Computing
Regular expressions
Regular expressions
text search
Grep
Linux commands
Summary
This post discusses how to use grep to search for a list of words by utilizing the -f flag for regular expressions, with an emphasis on treating the input as simple words using the -F option.
Read full post on www.johndcook.com →
MORE POSTS LIKE THIS
GNU Coreutils 9.12 Gives Linux’s Everyday Commands Some New Tricks
Fossforce ·
Sep 15, 2026
developer
Releases
Soft-deprecating re.match()
hugovk ·
Sep 10, 2026
Python
Regular expressions
Soft-deprecating re.match()
simonw ·
Sep 11, 2026
Python
Regular expressions
Usenet-Rewind
Andy Baio ·
Sep 9, 2026
links
text search
Technical note: transfer files over an ethernet patch cable
Maurycy Z. ·
Aug 29, 2026
Networking
file-transfer
Regular expression speed and error rates
John Cook ·
Jul 17, 2026
Computing
Medical codes
Discover more posts →
AUTHOR
Advertise
Sponsor diff.blog
Put your product in front of developers who read and write about their craft. One exclusive sponsor at a time.
Become a sponsor →
BLOG POST FEATURED ON
Hacker News
3 points
Add this plugin to your blog
RECENT POSTS FROM THE AUTHOR
Choose how you want to continue.
Continue with GitHub
Continue with Google
By continuing, you agree to our
Privacy Policy
.