Extracting text based on patterns.