Pattern AST
  P| a{ \d+ digits }b
MatchLiteral 'a'
MatchValue    (name: digits, scalar)
    MatchRegex '\\d+'
MatchLiteral 'b'
Input String Captured JSON
a34b
{
  "digits": "34"
}

This HTML fragment was automatically generated from the test cases for JSON Pattern.