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

4 lines
54 B
Text
Raw Permalink Normal View History

2016-12-05 23:44:36 +01:00
$ jq -n '"abcdabcd" | match("bc"; "g") | .offset'
1
5