Test, validate and match regular expressions
Matches multi-line class definition blocks with fields like name, optional dualwield, primary, imageSuffix, imageSuffixAlt, and resources. Designed to parse structured config data resembling Diablo 3 class definitions, capturing each property value into groups. The optional dualwield line is matched if present, making it flexible for class entries with or without that attribute.