doc neaten

This commit is contained in:
John Kerl 2015-11-21 18:02:22 -05:00
parent f0c6211b67
commit ab90e557ca
2 changed files with 32 additions and 4 deletions

View file

@ -990,8 +990,22 @@ filter '$url =~ "http.*com"'</tt>
</ul>
<p/>The <tt>i</tt> after the double-quoted regular-expression string is used to
signify case-insensitive match.
<p/>Points demonstrated by the above examples:
<ul>
<li/> There are no implicit start-of-string or end-of-string anchors; please
use <tt>^</tt> and/or <tt>$</tt> explicitly.
<li/> Miller regexes are wrapped with double quotes rather than slashes.
<li/> The <tt>i</tt> after the ending double quote indicates a case-insensitive
regex.
<li/> Capture groups are wrapped with <tt>(...)</tt> rather than
<tt>\(...\)</tt>; use <tt>\(</tt> and <tt>\)</tt> to match against parentheses.
</ul>
<p/>For <tt>filter</tt> and <tt>put</tt>, if the regular expression is a string
literal (the normal case), it is precompiled at process start and reused

View file

@ -3310,8 +3310,22 @@ filter '$url =~ "http.*com"'</tt>
</ul>
<p/>The <tt>i</tt> after the double-quoted regular-expression string is used to
signify case-insensitive match.
<p/>Points demonstrated by the above examples:
<ul>
<li/> There are no implicit start-of-string or end-of-string anchors; please
use <tt>^</tt> and/or <tt>$</tt> explicitly.
<li/> Miller regexes are wrapped with double quotes rather than slashes.
<li/> The <tt>i</tt> after the ending double quote indicates a case-insensitive
regex.
<li/> Capture groups are wrapped with <tt>(...)</tt> rather than
<tt>\(...\)</tt>; use <tt>\(</tt> and <tt>\)</tt> to match against parentheses.
</ul>
<p/>For <tt>filter</tt> and <tt>put</tt>, if the regular expression is a string
literal (the normal case), it is precompiled at process start and reused