Failing regex left match in Jayway engine
See original GitHub issueSample input:
{
"image": "a",
"image2": "b",
"image3": "c",
"image4": "d",
"image5": "e"
}
JsonPath expression: $.[?(@ =~ /image*/)]
Expected output:
[
"a",
"b",
"c",
"d",
"e"
]
This works with https://jsonpath.com/ 's evaluator but not with Jayway JsonPath 😐
Issue Analytics
- State:
- Created 3 years ago
- Comments:5
Top Results From Across the Web
JSONPath regular expression - NOT starting with
I'm using https://jsonpath.herokuapp.com/ to try and find the right JSONPATH syntax to filter out anything not starting with foo , and having id ......
Read more >Catastrophic Backtracking - Runaway Regular Expressions
If anything fails, the regex engine will backtrack through the whole regex, but it will do so linearly. The reason is that all...
Read more >Grouping Constructs in Regular Expressions - Microsoft Learn
NET regular expression engine and indicates whether they are ... If the final subpattern is evaluated, the match fails, because the (?
Read more >Spring Cloud Contract Reference Documentation
has a field `client.id` that matches a regular expression `[0-9]{10}` ... is not in place yet, so the automatically-generated contract tests fail.
Read more >Use com.intuit.karate.core.ScenarioEngine.recurseAndAttach in ...
Match ; import com.intuit.karate.RuntimeHook; import com.intuit.karate. ... TemplateUtils; import com.jayway.jsonpath. ... Function; import java.util.regex.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
oops, closing then, sorry. Hope it gets fixed soon!
It certainly is but seems like not for all use cases 😉