mirror of
https://github.com/stedolan/jq.git
synced 2024-05-11 05:55:39 +00:00
mark functions which require 1.5
This commit is contained in:
+5
-5
@@ -2095,7 +2095,7 @@ map(foo) | from_entries</code>, useful for doing some operation to all keys and
|
||||
|
||||
<section id="flattenflattendepth">
|
||||
<h3>
|
||||
<p><code>flatten</code>, <code>flatten(depth)</code></p>
|
||||
<p>[Requires 1.5] <code>flatten</code>, <code>flatten(depth)</code></p>
|
||||
|
||||
</h3>
|
||||
<p>The filter <code>flatten</code> takes as input an array of nested arrays, and produces a flat array in which all arrays inside the original array have been recursively replaced by their values. You can pass an argument to it to specify how many levels of nesting to flatten.</p>
|
||||
@@ -3028,7 +3028,7 @@ map(foo) | from_entries</code>, useful for doing some operation to all keys and
|
||||
|
||||
<section id="matchvalmatchregexmodifiers">
|
||||
<h3>
|
||||
<p><code>match(val)</code>, <code>match(regex; modifiers)</code></p>
|
||||
<p>[Requires 1.5] <code>match(val)</code>, <code>match(regex; modifiers)</code></p>
|
||||
|
||||
</h3>
|
||||
<p>The filter <code>match(val)</code> performs PCRE regex matching on its input. <code>val</code> can be either a string or an array. If it is an array, the first element is the regex specifier and the optional second element is the modifier flags. The accepted modifier flags are:</p>
|
||||
@@ -3175,7 +3175,7 @@ map(foo) | from_entries</code>, useful for doing some operation to all keys and
|
||||
|
||||
<section id="testvaltestregextestregexmodifiers">
|
||||
<h3>
|
||||
<p><code>test(val)</code>, <code>test(regex)</code>, <code>test(regex; modifiers)</code></p>
|
||||
<p>[Requires 1.5] <code>test(val)</code>, <code>test(regex)</code>, <code>test(regex; modifiers)</code></p>
|
||||
|
||||
</h3>
|
||||
<p>Like <code>match</code>, but does not return match objects, only <code>true</code> or <code>false</code> for whether or not the regex matches the input.</p>
|
||||
@@ -3242,7 +3242,7 @@ map(foo) | from_entries</code>, useful for doing some operation to all keys and
|
||||
|
||||
<section id="subresubgsubresub">
|
||||
<h3>
|
||||
<p><code>sub(re; sub)</code>, <code>gsub(re; sub)</code></p>
|
||||
<p>[Requires 1.5] <code>sub(re; sub)</code>, <code>gsub(re; sub)</code></p>
|
||||
|
||||
</h3>
|
||||
<p><code>sub(re; sub)</code> replaces with <code>sub</code> the first match of the given regexp <code>re</code> in its input. <code>gsub(re; sub)</code> replaces all matches.</p>
|
||||
@@ -3252,7 +3252,7 @@ map(foo) | from_entries</code>, useful for doing some operation to all keys and
|
||||
|
||||
<section id="scanresplit2re">
|
||||
<h3>
|
||||
<p><code>scan(re)</code>, <code>split2(re)</code></p>
|
||||
<p>[Requires 1.5] <code>scan(re)</code>, <code>split2(re)</code></p>
|
||||
|
||||
</h3>
|
||||
<p><code>scan(re)</code> outputs the substrings of its input that match the given regexp <code>re</code>.</p>
|
||||
|
||||
Reference in New Issue
Block a user