libs/core: introduce luci.util.imatch()