mirror of
https://github.com/johnkerl/miller.git
synced 2026-07-19 01:15:21 +00:00
doc neaten
This commit is contained in:
parent
f0c6211b67
commit
ab90e557ca
2 changed files with 32 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue