On 07.05.13 15:32, Chris Green wrote: > On Tue, May 07, 2013 at 10:21:49AM -0400, Patrick Shanahan wrote: > > REs would be preferable but it does provide "fuzzy" searchs > > > Yes, I've used them occasionally, doesn't help with non alpha/number > strings though.
Maybe I'm missing something, but backslash-escaping allows REs to match non alpha/number characters just fine, I find. The trick is to stick with EREs (egrep, grep -E), because the BREs used by some tools by default require more (and different) escapes. (When you're whacking in a quick regex on the command line, it's handy to be using the same variant as you used last time.) Erik -- Arguing that Java is better than C++ is like arguing that grasshoppers taste better than tree bark. - Thant Tessman