Date: Mon, 12 Dec 2005 07:50:05 -0600 From: Martin McCormick <martin@dc.cis.okstate.edu> To: freebsd-questions@freebsd.org Subject: Re: Regular Expression Trouble Message-ID: <200512121350.jBCDo5hn019872@dc.cis.okstate.edu>
next in thread | raw e-mail | index | archive | help
Parv writes: >For even finer results, use word boundaries ... > > egrep '\bIN[^[:alnum:]]+A\b' file > egrep '\<IN[[:space:]]+A\>' file I sincerely thank all for your examples which I have saved for future reference. The word boundary test appears to work perfectly, but after looking at all the other examples, they should work also giving living proof that in UNIX, there are many perfectly valid ways to solve the same problem. Again, many thanks. Martin McCormick WB5AGZ Stillwater, OK OSU Information Technology Department Network Operations Group .-- -... ..... .- --. --..
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200512121350.jBCDo5hn019872>