Files
2025-10-04 22:52:22 +04:00

2.1 KiB

Pf2e.Scrapper

Pf2e.Scrapper.Importers.Implementations.Aonprd.Processors.Types.RitualProcessor

RitualProcessor.PrimaryRegex1() Method

private static System.Text.RegularExpressions.Regex PrimaryRegex1();

Returns

System.Text.RegularExpressions.Regex

Remarks

Pattern:

^ *\\[\\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/>