casbin/util/built_in_functions.cpp
ReturnType RegexMatch(Scope scope) {
    std::string key1 = GetString(scope, 0);
    std::string key2 = GetString(scope, 1);

    PushBooleanValue(scope, RegexMatch(key1, key2));
    return RETURN_RESULT;
}
// RegexMatch determines whether key1 matches the pattern of key2 in regular expression.
RegexMatch determines whether key1 matches the pattern of key2 in regular expression.
RegexMatch determines whether key1 matches the pattern of key2 in regular expression .
ReturnType RegexMatch(Scope scope) {
    std::string key1 = GetString(scope, 0);
    std::string key2 = GetString(scope, 1);
    PushBooleanValue(scope, RegexMatch(key1, key2));
    return RETURN_RESULT;
}
ReturnType RegexMatch ( Scope scope ) { std :: string key1 = GetString ( scope , 0 ) ; std :: string key2 = GetString ( scope , 1 ) ; PushBooleanValue ( scope , RegexMatch ( key1 , key2 ) ) ; return RETURN_RESULT ; }
RegexMatch determines whether key1 matches the pattern of key2 in regular expression.
RegexMatch determines whether key1 matches the pattern of key2 in regular expression .