Difference between revisions of "jq json parser notes"

From thelinuxwiki
Jump to: navigation, search
(Created page with " ==Regular expressions== test(val), test(regex; flags) Like match, but does not return match objects, only true or false for whether or not the regex matches the input exam...")
 
 
Line 1: Line 1:
 
+
==jq manual==
 +
[https://stedolan.github.io/jq/manual/ jq Manual (development version)]
 
==Regular expressions==
 
==Regular expressions==
  

Latest revision as of 12:01, 4 August 2018

jq manual

jq Manual (development version)

Regular expressions

test(val), test(regex; flags)

Like match, but does not return match objects, only true or false for whether or not the regex matches the input

example:

$cat .tmp.json | jq '"HAHAHA 123" | test("hahaha.*[0-9]{3}"; "i")'
true