Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Community Library
How to contribute
x
Match C/C++ local include
Open Workspace
Rust
Match
Created 2026-11-06 00:38
2
Regular Expression
r#"
^
#include
[
\t
]
*
"
(
(?:
/
?
[
\w
\-
.
]
+
)+
\.
(?:
hpp
|
h
)
)
"
[
\t
]
*
$
"#
gmu
Description
Match C/C++ local include and have the path in group 1
Submitted by
Anonymous