Improved parsing of matching regions.