Pattern matching extraction.