From: Tom Allison Date: 2006-10-03T18:40:45+09:00 Subject: Re: regular expressions Paul Lutus wrote: > Tom Allison wrote: > >> I'm sorry if this has been done before, but I can't seem to find any good >> examples: >> >> I'm trying to search mail messages for headers based on the following: >> >> config = YAML.load_file('config.yaml') >> >> $stdin.each do |line| >> puts line if line =~ /^Recevied:/ .. line =~ /by >> #{config['hostname']}/o >> end >> >> and guess what? It doesn't work. > > Yes, it doesn't, and I think I know why. I have been hearing for years how > it just doesn't matter whether young people learn how to spell common > words, and I have steadfastly taken the position that it does matter. > You make a pretty good example of another lost art...