Boost.Regex表达式构建

时间:2013-01-23 12:21:54

标签: c++ regex boost

我需要构建一个与通用#include "file.h"代码行匹配的表达式。

以下是否正确用于此目的?

([[:blank:]]*#include[[:blank:]]*")([[:print:]]*\.h)([[:print:]]*)

表达式应符合以下条件:

#include     "header.h" //first include

     #include "header2.h"      //second include

#include "header3.h"

我使用boost regex库。

0 个答案:

没有答案