31 lines
1.1 KiB
Markdown
31 lines
1.1 KiB
Markdown
#### [Pf2e\.Scrapper](index.md 'index')
|
|
### [Pf2e\.Scrapper\.Importers\.Implementations\.Aonprd\.Helpers](Pf2e.Scrapper.Importers.Implementations.Aonprd.Helpers.md 'Pf2e\.Scrapper\.Importers\.Implementations\.Aonprd\.Helpers').[StringHelper](StringHelper.md 'Pf2e\.Scrapper\.Importers\.Implementations\.Aonprd\.Helpers\.StringHelper')
|
|
|
|
## StringHelper\.LinkRegex\(\) Method
|
|
|
|
```csharp
|
|
public static System.Text.RegularExpressions.Regex LinkRegex();
|
|
```
|
|
|
|
#### Returns
|
|
[System\.Text\.RegularExpressions\.Regex](https://docs.microsoft.com/en-us/dotnet/api/System.Text.RegularExpressions.Regex 'System\.Text\.RegularExpressions\.Regex')
|
|
|
|
### Remarks
|
|
Pattern:<br/>
|
|
|
|
```csharp
|
|
(.*?)\\[(.*?)\\]\\((.*?)\\)
|
|
```<br/>
|
|
Explanation:<br/>
|
|
|
|
```csharp
|
|
○ 1st capture group.<br/>
|
|
○ Match a character other than '\n' lazily any number of times.<br/>
|
|
○ Match '['.<br/>
|
|
○ 2nd capture group.<br/>
|
|
○ Match a character other than '\n' lazily any number of times.<br/>
|
|
○ Match the string "](".<br/>
|
|
○ 3rd capture group.<br/>
|
|
○ Match a character other than '\n' lazily any number of times.<br/>
|
|
○ Match ')'.<br/>
|
|
``` |