Files
Pf2eDataScrapper/Documentation/Pf2e.Scrapper/StringHelper.SourceSuffixRegex().md
T
2025-10-04 22:52:22 +04:00

1.2 KiB

Pf2e.Scrapper

Pf2e.Scrapper.Importers.Implementations.Aonprd.Helpers.StringHelper

StringHelper.SourceSuffixRegex() Method

public static System.Text.RegularExpressions.Regex SourceSuffixRegex();

Returns

System.Text.RegularExpressions.Regex

Remarks

Pattern:

^\\[.*?\\]\\(.*?\\)\\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/>