RosettaCodeData/Task/String-matching/Jq/string-matching-6.jq

4 lines
54 B
Plaintext

$ jq -n '"abcdabcd" | match("bc"; "g") | .offset'
1
5