Add example implementation of glob regexpr