<html><head><title>Banned files match, example question</title>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-15">
</head>
<body>
<span style=" font-family:'Courier New'; font-size: 9pt;">I'm looking at these two banned files defs/matches. [From the Ubuntu default configs]<br>
<br>
---<br>
  qr'.\.(exe|vbs|pif|scr|bat|cmd|com|cpl)$'i, # banned extension - basic<br>
<br>
# qr'.\.(ade|adp|app|bas|bat|chm|cmd|com|cpl|crt|emf|exe|fxp|grp|hlp|hta|<br>
#        inf|ins|isp|js|jse|lnk|mda|mdb|mde|mdw|mdt|mdz|msc|msi|msp|mst|<br>
#        ops|pcd|pif|prg|reg|scr|sct|shb|shs|vb|vbe|vbs|<br>
#        wmf|wsc|wsf|wsh)$'ix,  # banned ext - long<br>
<br>
---<br>
<br>
But I'm confused. Why does the first match use:<br>
$'i<br>
vs<br>
$'ix for the second?<br>
<br>
It's matching to i in the first, but ix in the second?<br>
<br>
Why?<br>
<br>
Sorry if I'm missing something obvious, but I just don't get it.<br>
<br>
-Greg<br>
</span><a style=" font-family:'arial';" href="mailto:gregs@sloop.net"></a></body></html>