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
~
(?:^///\s*(?:<summary>)?|</summary>)(*SKIP)(*F)|(?:(?!</?summary>|^///(?!/)\s*).)+
~
gm
Input 1
1
New
/// <summary> This is a single-line XML comment. </summary> /// <summary> This is a multi-line XML comment. /// These are additional lines with more text. /// Some more of these text. </summary> /// <summary> This is another XML text summary with a different /// format. /// </summary>
Extraction
/// <summary> This is a single-line XML comment. </summary> /// <summary> This is a multi-line XML comment. /// These are additional lines with more text. /// Some more of these text. </summary> /// <summary> This is another XML text summary with a different /// format. /// </summary>