Capture match, rule regex, options

Also remove dead code, normalize the syntax a little, and fix ignored map.