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

1.4 KiB

Pf2e.Scrapper

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

RitualProcessor.CasterRegex() Method

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

Returns

System.Text.RegularExpressions.Regex

Remarks

Pattern:

^(\\d+)(?:\\-(\\d+))?,? *\\(?(.*?)\\)?$
```<br/>
Options:<br/>

```csharp
RegexOptions.Multiline
```<br/>
Explanation:<br/>

```csharp
○ Match if at the beginning of a line.<br/>
○ 1st capture group.<br/>
    ○ Match a Unicode digit greedily at least once.<br/>
○ Optional (greedy).<br/>
    ○ Match '-'.<br/>
    ○ 2nd capture group.<br/>
        ○ Match a Unicode digit greedily at least once.<br/>
○ Match ',' greedily, optionally.<br/>
○ Match ' ' greedily any number of times.<br/>
○ Match '(' greedily, optionally.<br/>
○ 3rd capture group.<br/>
    ○ Match a character other than '\n' lazily any number of times.<br/>
○ Match ')' atomically, optionally.<br/>
○ Match if at the end of a line.<br/>