Pattern AST
  
           | $value digits
          P|    \d+ {.space}
           | end
  
MatchValue    (name: digits, scalar)
    MatchRegex '\\d+ '
Input String Captured JSON
10 
{
  "digits": "10 "
}

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