You've already forked linux-packaging-mono
acceptance-tests
data
debian
docs
external
Newtonsoft.Json
api-doc-tools
api-snapshot
aspnetwebstack
bdwgc
binary-reference-assemblies
bockbuild
boringssl
cecil
cecil-legacy
corefx
corert
helix-binaries
ikdasm
ikvm
illinker-test-assets
linker
llvm-project
clang
clang-tools-extra
compiler-rt
libcxx
benchmarks
cmake
docs
fuzzing
include
lib
src
utils
google-benchmark
cmake
AddCXXCompilerFlag.cmake
CXXFeatureCheck.cmake
Config.cmake.in
GetGitVersion.cmake
gnu_posix_regex.cpp
posix_regex.cpp
std_regex.cpp
steady_clock.cpp
thread_safety_attributes.cpp
docs
include
src
test
tools
.gitignore
AUTHORS
CMakeLists.txt
CONTRIBUTING.md
CONTRIBUTORS
LICENSE
README.LLVM
README.md
mingw.py
libcxx
symcheck-blacklists
cat_files.py
gen_link_script.py
merge_archives.py
not.py
sym_diff.py
sym_extract.py
sym_match.py
www
.arcconfig
.clang-format
.gitignore
CMakeLists.txt
CREDITS.TXT
LICENSE.TXT
NOTES.TXT
TODO.TXT
appveyor-reqs-install.cmd
appveyor.yml
libcxxabi
libunwind
lld
lldb
llvm
openmp
polly
nuget-buildtasks
nunit-lite
roslyn-binaries
rx
xunit-binaries
how-to-bump-roslyn-binaries.md
ikvm-native
llvm
m4
man
mcs
mk
mono
msvc
netcore
po
runtime
samples
scripts
support
tools
COPYING.LIB
LICENSE
Makefile.am
Makefile.in
NEWS
README.md
acinclude.m4
aclocal.m4
autogen.sh
code_of_conduct.md
compile
config.guess
config.h.in
config.rpath
config.sub
configure.REMOVED.git-id
configure.ac.REMOVED.git-id
depcomp
install-sh
ltmain.sh.REMOVED.git-id
missing
mkinstalldirs
mono-uninstalled.pc.in
test-driver
winconfig.h
13 lines
267 B
C++
13 lines
267 B
C++
![]() |
#include <gnuregex.h>
|
||
|
#include <string>
|
||
|
int main() {
|
||
|
std::string str = "test0159";
|
||
|
regex_t re;
|
||
|
int ec = regcomp(&re, "^[a-z]+[0-9]+$", REG_EXTENDED | REG_NOSUB);
|
||
|
if (ec != 0) {
|
||
|
return ec;
|
||
|
}
|
||
|
return regexec(&re, str.c_str(), 0, nullptr, 0) ? -1 : 0;
|
||
|
}
|
||
|
|