Skip to content

Commit

Permalink
Add sample for pattern used in menees/Analyzers#9
Browse files Browse the repository at this point in the history
  • Loading branch information
menees committed Aug 19, 2022
1 parent caa2300 commit 783546e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/Files/C# XML Comment Refs.rgxp
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"Version": 1,
"UnixNewline": true,
"RegexOptions": "Multiline, IgnorePatternWhitespace",
"Pattern": "(?nx-i)^\u003Csee(also)?\\s\u002Bhref=( # Begin tag and href=\n(\u0022(?\u003Curl\u003E[^\u0022\\n]\u002B)\u0022) # Double-quoted URL\n|(\u0027(?\u003Curl\u003E[^\u0027\\n]\u002B)\u0027) # Single-quoted URL\n)\\s*/\u003E$ # End tag",
"Input": "\u003Csee href=\u0022Test\u0022 /\u003E\n\u003Cseealso href=\u0022Test\u0022 /\u003E\n\u003Csee href=\u0027Test\u0027 /\u003E\n\u003Cseealso href=\u0027Test\u0027 /\u003E\n\u003Csee href=\u0022http://menees.com\u0022 /\u003E\n\u003Cseealso href=\u0022http://menees.com\u0022 /\u003E\n\u003Csee href=\u0022https://www.microsoft.com\u0022 /\u003E\n\u003Cseealso href=\u0022https://www.microsoft.com\u0022 /\u003E\n\u003Cseen href=\u0022Test\u0022 /\u003E\n\u003Cseealso cref=\u0022Test\u0022 /\u003E\n\u003Csee href=\u0022DifferentQuoteChars\u0027 /\u003E\n\u003Cseealso href=\u0027DifferentQuoteChars\u0022 /\u003E\n"
}

0 comments on commit 783546e

Please sign in to comment.