41 lines
1.4 KiB
Markdown
41 lines
1.4 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\.CasterRegex\(\) Method
|
|
|
|
```csharp
|
|
private static System.Text.RegularExpressions.Regex CasterRegex();
|
|
```
|
|
|
|
#### 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
|
|
^(\\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/>
|
|
``` |