On Thu, 2011-04-21 at 13:54 -0800, Kevin Miller wrote: > mxg:/var/spool/MailScanner/quarantine/20110421/nonspam # egrep \[<br>]{5,} > p3LJZSnX024470 > That won't do what you want anyway, since its asking for "a sequence of 5 characters, each of which must be one of <,>,b or r" and isn't allowing for possible whitespace between '<br>' ocurrences. Something like:
grep -P '<br>\s{0,5}<br>\s{0,5}<br>' x1.txt will match on three or more <br> tags with possible whitespace between them. The -P option says 'use Perl regex syntax' - a recent grep extension and one you should use when developing SA regexes with grep or egrep. Martin