On 2012-05-05 12:41:35 +0200, mouss wrote: > with pcre, you can use \s+ > > /Received:\s*from\s+\S+\s+\(\S+\s+\[\S+\]\)\s+by\+\S+/ ^^ \s+ > > that looks a bit cryptic, doesn't it? :)
I wish pcre had a flag so that a space means \s+. That would particularly be useful here, where headers may be split at any whitespace. -- Vincent Lefèvre <vinc...@vinc17.net> - Web: <http://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)