Download gemma.cpp/build/_deps/benchmark-src/cmake/std_regex.cpp from ZeroWw/gemma-2-9b-SBS: direct link, hf CLI and curl.
- Browser
- Download file 259 Bytes
-
https://huggingface.co/ZeroWw/gemma-2-9b-SBS/resolve/main/gemma.cpp/build/_deps/benchmark-src/cmake/std_regex.cpp
- Command line
-
hf download hf://ZeroWw/gemma-2-9b-SBS/gemma.cpp/build/_deps/benchmark-src/cmake/std_regex.cpp
-
curl -L -o std_regex.cpp https://huggingface.co/ZeroWw/gemma-2-9b-SBS/resolve/main/gemma.cpp/build/_deps/benchmark-src/cmake/std_regex.cpp
259 Bytes
| int main() { | |
| const std::string str = "test0159"; | |
| std::regex re; | |
| re = std::regex("^[a-z]+[0-9]+$", | |
| std::regex_constants::extended | std::regex_constants::nosubs); | |
| return std::regex_search(str, re) ? 0 : -1; | |
| } | |