I have single-line and multi-line XML Summary texts, that look like these.
/// <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>
In RegexBuddy, how would I capture the texts within, without the /// and the <summary>
</summary>
tags?
I came up with the following to capture a multi-line XML summary:
((\s*(///)\s*((<summary>)?))(.*))+(</summary>)$
and a single XML summary:
\s*///\s*(<summary>).*(</summary>)$
But I've no idea how to capture just the text.
What would be the regular expression I would use, in order to capture just the text, so that I can use it in a replacement reference?
Thank you in advance.