32 lines
1.2 KiB
Markdown
32 lines
1.2 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\.SourceSuffixRegex\(\) Method
|
|
|
|
```csharp
|
|
public static System.Text.RegularExpressions.Regex SourceSuffixRegex();
|
|
```
|
|
|
|
#### 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
|
|
^\\[.*?\\]\\(.*?\\)\\s+(.*)$
|
|
```<br/>
|
|
Explanation:<br/>
|
|
|
|
```csharp
|
|
○ Match if at the beginning of the string.<br/>
|
|
○ Match '['.<br/>
|
|
○ Match a character other than '\n' lazily any number of times.<br/>
|
|
○ Match the string "](".<br/>
|
|
○ Match a character other than '\n' lazily any number of times.<br/>
|
|
○ Match ')'.<br/>
|
|
○ Match a whitespace character greedily at least once.<br/>
|
|
○ 1st capture group.<br/>
|
|
○ Match a character other than '\n' greedily any number of times.<br/>
|
|
○ Match if at the end of the string or if before an ending newline.<br/>
|
|
``` |