regular expression matching whole words

view full story

http://www.unix.com – Hi Consider the file Code: this is a good line when running Code: grep '\b(good|great|excellent)\b' file5 I expect it to match the line but it doesn't... what am i doing wrong?? (ultimately this regex will be in a awk script- just using grep to test it) Thanks, Storms (HowTos)