Yaak Logo
Yaak
Feedback/Add regular expressions support for JSONPath

Add regular expressions support for JSONPath

t4m4k0ty4 ·Jul 14, 2026 08:20:46 UTC·YK-1030
ResolvedFeature Request

User story: As user a want to filter list of objects in a response by value’s prefix of certain field

Response example:

[
   {
      "type": "radio",
      "code": "bank_1_1",
      "weight": 0,
    },
    {
      "type": "radio",
      "code": "bank_1_7",
      "weight": 0,

    },
    {
      "type": "radio",
      "code": "bank_2_8",
      "weight": 0,

    },
    {
      "type": "radio",
      "code": "bank_3_3",
      "weight": 0,
    }
]

Now i haven’t tools for filtering objects which code value has a bank_1 prefix

As offer we can replace vanilla JSON Path on JSONPath Plus that supports reqular expressions as @.match(/pattern/flags) and adds other functionality for more granular search: https://github.com/JSONPath-Plus/JSONPath

macOS2026.4.0

Comments (3)

Sign in to leave a comment.

Gregory SchierResolved

Thanks for the example. It turns out this already works in Yaak because it uses JSONPath Plus:

$[?(@.code.match(/^bank_1/))]

I tested it here:

Regex filtering verified in Yaak
t4m4k0ty4 OP

Oh Thanks for the answer - it really works!

Yaak Bot

Glad that worked!

Type to search feedback...