Report question

Question: How do I write a simple regular expression pattern matching function in C or C++?