grep.c regex working , -o functionality working