53 lines
2.1 KiB
Markdown
53 lines
2.1 KiB
Markdown
#### [Pf2e\.Scrapper](index.md 'index')
|
|
### [Pf2e\.Scrapper\.Importers\.Implementations\.Aonprd\.Processors\.Types](Pf2e.Scrapper.Importers.Implementations.Aonprd.Processors.Types.md 'Pf2e\.Scrapper\.Importers\.Implementations\.Aonprd\.Processors\.Types').[RitualProcessor](RitualProcessor.md 'Pf2e\.Scrapper\.Importers\.Implementations\.Aonprd\.Processors\.Types\.RitualProcessor')
|
|
|
|
## RitualProcessor\.PrimaryRegex1\(\) Method
|
|
|
|
```csharp
|
|
private static System.Text.RegularExpressions.Regex PrimaryRegex1();
|
|
```
|
|
|
|
#### 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
|
|
^ *\\[\\s*(.*?)\\s*\\]\\((.*?)\\)\\s*([a-z' ]*?)<(.*?)(?:[;,]?\\s*(.*?))?>([a-z' ]*?)$
|
|
```<br/>
|
|
Options:<br/>
|
|
|
|
```csharp
|
|
RegexOptions.Multiline
|
|
```<br/>
|
|
Explanation:<br/>
|
|
|
|
```csharp
|
|
○ Match if at the beginning of a line.<br/>
|
|
○ Match ' ' atomically any number of times.<br/>
|
|
○ Match '['.<br/>
|
|
○ Match a whitespace character greedily any number of times.<br/>
|
|
○ 1st capture group.<br/>
|
|
○ Match a character other than '\n' lazily any number of times.<br/>
|
|
○ Match a whitespace character atomically any number of times.<br/>
|
|
○ Match the string "](".<br/>
|
|
○ 2nd capture group.<br/>
|
|
○ Match a character other than '\n' lazily any number of times.<br/>
|
|
○ Match ')'.<br/>
|
|
○ Match a whitespace character greedily any number of times.<br/>
|
|
○ 3rd capture group.<br/>
|
|
○ Match a character in the set [ 'a-z] atomically any number of times.<br/>
|
|
○ Match '<'.<br/>
|
|
○ 4th capture group.<br/>
|
|
○ Match a character other than '\n' lazily any number of times.<br/>
|
|
○ Optional (greedy).<br/>
|
|
○ Match a character in the set [,;] greedily, optionally.<br/>
|
|
○ Match a whitespace character greedily any number of times.<br/>
|
|
○ 5th capture group.<br/>
|
|
○ Match a character other than '\n' lazily any number of times.<br/>
|
|
○ Match '>'.<br/>
|
|
○ 6th capture group.<br/>
|
|
○ Match a character in the set [ 'a-z] atomically any number of times.<br/>
|
|
○ Match if at the end of a line.<br/>
|
|
``` |