can anyone please show me an example about using regex (regex.h) in C/C++ to search and/or extracting subpattern in a regex.
in javascript, it will be something like
Neither C nor C++ has a "regex.h". The newest version of C++ (commonly called C++0x) will have regular expression support, but it will be Boost.Regex, more or less. So you may as well just ask, "How do I use Boost.Regex?"