regexec関数は、ヌル終了ストリング string とコンパイル済み正規表現 preg とを比較して、両者の間に一致箇所を見つけます。 関数名 regexec ヘッダー #include <regex.h> 関数プロトタイプ int regexec(const regex_t *preg, const char *string, size_t nmatch, regmatch_t *pmatch, int eflags); 詳細 ヌル終了ストリング string とコンパイル済み正規表現 preg とを比較して、両者の間に一致箇所を見つけます。