http://snippets.bentasker.i2p/posts/misc/selecting-subattributes-based-on-substrings.html
<channel>[a-z,0-9,-]+)\\\"","i").channel' # Generating a Tab seperated CSV of ID, Name and channel name # Skip empty channels echo " $JSON_STR " | jq -r '.[] | select(.prop1 | contains("channel: ")) | select(.prop1 | contains("channel: \"\"") | not) | [.ID, .Name, (.prop1 | capture("channel: \\\"(?