question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failing regex left match in Jayway engine

See original GitHub issue

Sample 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:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
kjozsacommented, Oct 27, 2020

oops, closing then, sorry. Hope it gets fixed soon!

0reactions
hf-kkleincommented, Oct 27, 2020

It certainly is but seems like not for all use cases 😉

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found