跳到主要内容

is_legal_pattern

判断是否为合法的正则表达式

声明

bool is_legal_pattern(string pattern)

参数

参数名描述
pattern正则表达式

返回值

true - 合法, false - 不合法

使用方式

返回文档