Pattern AST
  
           | $repeated
          P|     { [a-z]+ word } { \d+ number }
           | end
  
MatchRepeated    (anonymous)
    MatchValue    (name: word, scalar)
        MatchRegex '[a-z]+'
    MatchValue    (name: number, scalar)
        MatchRegex '\\d+'
Input String Captured JSON
ab3bc4
[
  {
    "word": "ab", 
    "number": "3"
  }, 
  {
    "word": "bc", 
    "number": "4"
  }
]

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