in reply to grep : partial and/or exact match
What do you want to do with "funkhead" or "crudshorts"? Think carefully. If you want to reject them based on your list of restricted words, you're going to get a lot of false positives based on legitimate words like "crude". (The same happens when you substitute "real" dirty words.)
If you don't want a false positive, you'll find that \b is your friend. See perlman:perlre.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: grep : partial and/or exact match
by Sidd@786 (Initiate) on Jun 17, 2020 at 05:51 UTC | |
by AnomalousMonk (Archbishop) on Jun 17, 2020 at 07:12 UTC | |
by Sidd@786 (Initiate) on Jun 17, 2020 at 09:53 UTC | |
by Sidd@786 (Initiate) on Jun 17, 2020 at 10:00 UTC |