Pattern AST
  
           |  group[1] desc
          P|    (.+?)\d+
           |  end
  
MatchAndCaptureGroup    (name: desc)
    MatchRegex '(.+?)\\d+'
Input String Captured JSON
foo3
{
  "desc": "foo"
}
Pattern AST
  
           |  group[1] desc
          P|    (.+?)\d+
           |  end
  
MatchAndCaptureGroup    (name: desc)
    MatchRegex '(.+?)\\d+'
Input String Captured JSON
333
{
  "desc": "3"
}

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