43 lines
1.6 KiB
Markdown
43 lines
1.6 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\.PrimaryRegex2\(\) Method
|
|
|
|
```csharp
|
|
private static System.Text.RegularExpressions.Regex PrimaryRegex2();
|
|
```
|
|
|
|
#### 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*\\]\\((.*?)\\) *$
|
|
```<br/>
|
|
Options:<br/>
|
|
|
|
```csharp
|
|
RegexOptions.Multiline
|
|
```<br/>
|
|
Explanation:<br/>
|
|
|
|
```csharp
|
|
○ Match if at the beginning of a line.<br/>
|
|
○ Match ' ' greedily any number of times.<br/>
|
|
○ 1st capture group.<br/>
|
|
○ Match a character other than '\n' lazily any number of times.<br/>
|
|
○ Match ' ' atomically any number of times.<br/>
|
|
○ Match '['.<br/>
|
|
○ Match a whitespace character greedily any number of times.<br/>
|
|
○ 2nd 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/>
|
|
○ 3rd capture group.<br/>
|
|
○ Match a character other than '\n' lazily any number of times.<br/>
|
|
○ Match ')'.<br/>
|
|
○ Match ' ' atomically any number of times.<br/>
|
|
○ Match if at the end of a line.<br/>
|
|
``` |