Simplified match code to use onigResult