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
C Macros
Open Workspace
PCRE2 (PHP)
Match
Created 2023-01-25 08:53
0
Regular Expression
/
^
*
#define
+
(
[
a
-
zA
-
Z
]
[
\w
]
*
)
\(
*
(
[
a
-
zA
-
Z_
]
\w
*
)(?:
*
,
*
(
[
a
-
zA
-
Z_
]
\w
*
)
*
)
*
\)
*
(
.
+
)
*
$
/
gm
Description
Regular expression to match C macros specified with the #define directive.
Submitted by
Alejandro