JsonPath expression to filter using regex
The Jayway implementation uses the Ruby regex operator:
$.store.book[?(@.title =~ /^.*Sword.*$/)]
To ignore case:
$.store.book[?(@.title =~ /^.*sword.*$/i)]
For the record, a workaround for conditional regex in Goessner's javascript JSONpath would be to write the query as follow:
$.store.book[?(/^.*sword.*$/i.test(@.title))]
Please see here https://github.com/jpaquit/jsonpath/tree/0.8.5-+-regexp for "=~" syntax in JS lib.