Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
^.*\.((((c|C)(c|pp|xx|\+\+)?$)|((h|H)h?(pp|xx|\+\+)?$))|(ino|pde|proto|cu))$
/
gm
Unit Tests
./test/known_fail/addition.c
→ regex does match
./test/known_fail/addition.C
→ regex does match
./test/known_fail/addition.cpp
→ regex does match
./test/known_fail/addition.cc
→ regex does match
./test/known_fail/addition.c++
→ regex does match
./test/known_fail/addition.cxx
→ regex does match
./test/known_fail/addition.ino
→ regex does match
./test/known_fail/addition.pde
→ regex does match
test/known_fail/addition.proto
→ regex does match
test/known_pass/addition.proto
→ regex does match
./test/known_fail/test.h
→ regex does match
./test/known_fail/test.H
→ regex does match
./test/known_fail/test.hpp
→ regex does match
./test/known_fail/test.hh
→ regex does match
./test/known_fail/test.h++
→ regex does match
./test/known_fail/test.hxx
→ regex does match
./.git/objects/13
→ regex does not match
./.clang-format
→ regex does not match