<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>pattern1: !(*.)s*s*g!(*.*)<br>
</div>pattern1 match results: messages syslog syslog.2.gz syslog.3.gz syslog.4.gz<br></div></div></blockquote><div><br></div><div>s*s*g matches "syslog.2.g", then *.* fails to match "z". no way to specify shortest match afaik.<br>
</div></div></div></div>