Utility for parsing structured text with text patterns