29 lines
1.1 KiB
Markdown
29 lines
1.1 KiB
Markdown
#### [Pf2e\.Scrapper](index.md 'index')
|
|
### [Pf2e\.Scrapper\.Importers\.Implementations\.Aonprd\.Processors\.Types\.Rules](Pf2e.Scrapper.Importers.Implementations.Aonprd.Processors.Types.Rules.md 'Pf2e\.Scrapper\.Importers\.Implementations\.Aonprd\.Processors\.Types\.Rules').[RulesTocProcessor](RulesTocProcessor.md 'Pf2e\.Scrapper\.Importers\.Implementations\.Aonprd\.Processors\.Types\.Rules\.RulesTocProcessor')
|
|
|
|
## RulesTocProcessor\.LinkRegex\(\) Method
|
|
|
|
```csharp
|
|
public static System.Text.RegularExpressions.Regex LinkRegex();
|
|
```
|
|
|
|
#### Returns
|
|
[System\.Text\.RegularExpressions\.Regex](https://learn.microsoft.com/en-us/dotnet/api/system.text.regularexpressions.regex 'System\.Text\.RegularExpressions\.Regex')
|
|
|
|
### Remarks
|
|
Pattern:<br/>
|
|
|
|
```csharp
|
|
<a href="Rules\\.aspx\\?ID=(\\d+)">(.*?)</a>
|
|
```<br/>
|
|
Explanation:<br/>
|
|
|
|
```csharp
|
|
○ Match the string "<a href=\"Rules.aspx?ID=".<br/>
|
|
○ 1st capture group.<br/>
|
|
○ Match a Unicode digit atomically at least once.<br/>
|
|
○ Match the string "\">".<br/>
|
|
○ 2nd capture group.<br/>
|
|
○ Match a character other than '\n' lazily any number of times.<br/>
|
|
○ Match the string "</a>".<br/>
|
|
``` |