MCPcopy Create free account
hub / github.com/Tablecruncher/tablecruncher / isEmailAddress

Method isEmailAddress

src/helper.cpp:541–544  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

539 return true;
540}
541bool Helper::isEmailAddress(const std::string& email) {
542 const std::regex pattern ("(\\w+)(\\.|_)?(\\w*)@(\\w+)(\\.(\\w+))+");
543 return std::regex_match(email, pattern);
544}
545bool Helper::isSomeDate(const std::string& dateString) {
546 const std::regex pattern ("^\\d+[\\.|\\-|\\|]\\d+[\\.|\\-|\\|]\\d+");
547 return std::regex_match(dateString, pattern);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected