I don't think C supports regular expressions natively. You'd need a regexp library for that. Here are some I found. http://www.tropicsoft.com/Components/RegularExpression/
I'm not sure if the last one is free. As for how to use them I guess they should come with documentation.