--- tags: - jq - howto --- Double escapes are important! ``` jq -r '.fixed_ips[] | select(.ip_address | test("([0-9]+\\.)+")) | .ip_address' ``` An example of constructing an array from stdin and filtering empty lines is found in [[Using JQ to construct an array and filtering empty strings]].