Create regmatch.c

using reg function