Pattern AST
  
           |  group[] desc
          P|    (\w+)(\s+)(\w+)
           |  end
  
MatchAndCaptureGroup    (name: desc)
    MatchRegex '(\\w+)(\\s+)(\\w+)'
Input String Captured JSON
foo  bar
{
  "desc": [
    "foo", 
    "  ", 
    "bar"
  ]
}

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