extract information for analysis using patterns