repo.or.cz
/
llvm-complete.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[ARM] Fix for MVE VPT block pass
[llvm-complete.git]
/
utils
/
benchmark
/
cmake
/
std_regex.cpp
blob
8177c482e838b45e5a48246d1411f37f8f86617e
1
#include <regex>
2
#include <string>
3
int
main
() {
4
const
std
::
string str
=
"test0159"
;
5
std
::
regex re
;
6
re
=
std
::
regex
(
"^[a-z]+[0-9]+$"
,
7
std
::
regex_constants
::
extended
|
std
::
regex_constants
::
nosubs
);
8
return
std
::
regex_search
(
str
,
re
) ?
0
: -
1
;
9
}