Pattern AST
  P| a{/[ ]/ a-space }b
MatchLiteral 'a'
MatchValue    (name: a-space, scalar)
    MatchRegex '[ ]'
MatchLiteral 'b'
Input String Captured JSON
a b
{
  "a-space": " "
}

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