Workflow Engine .NET

Assembly: OptimaJet.Workflow.Core

Class RegexPattern.Groups

OptimaJet.Workflow.Core.CodeActions.RegexPattern.Groups

Contain parts which can be used to compose common patterns and names which can be used for search in match.If add new group don't forget about name.If change names don't forget about name include pattern.

public static class RegexPattern.Groups

Inheritance

  • System.Object

Fields

public const string ParameterName = "(?<ParameterName>(?(MaybeWithBracket)[&#92;&#92;w ]+(&#92;&#92;.[&#92;&#92;w ]+)*|&#92;&#92;w+(&#92;&#92;.&#92;&#92;w+)*))" #
In '@document.Employee.Amount:format' or '@(document.Employee.Amount:format)' finds 'document.Employee.Amount'
public const string FindParameter = "(?<FindParameter>(?<MaybeWithBracket>@&#92;&#92;()|(?<WithoutBracket>(?<=[^&#92;&#92;w]|^|&#92;&#92;&#92;&#92;n)@))" #
In '@document.Employee.Amount:format' or '@(document.Employee.Amount:format)' finds '@' '@('
public const string MaybeWithBracket = "(?<MaybeWithBracket>@&#92;&#92;()" #
public const string EndWithBracketIfExists = "(?<EndWithBracketIfExists>(?(MaybeWithBracket)&#92;&#92;)|))" #
public const string WithoutBracket = "(?<WithoutBracket>(?<=[^&#92;&#92;w]|^|&#92;&#92;&#92;&#92;n)@)" #
public const string MaybeExistsFormat = "((?<MaybeExistsFormat>:(?!&#92;&#92;s*@))|())" #
public const string Format = "(?<Format>(?(MaybeExistsFormat)(?(MaybeWithBracket)([^&#92;"'()]|(?<=&#92;&#92;&#92;&#92;)(&#92;&#92;(|&#92;&#92;)|&#92;&#92;&#92;"|'))*|[^&#92;&#92;(&#92;&#92;)&#92;&#92;{&#92;&#92;}&#92;&#92;[&#92;&#92;]&#92;&#92;s&#92;&#92;&#92;"']*)|))" #
In '@document.Employee.Amount:format' or '@(document.Employee.Amount:format)' finds 'format'
public const string MaybeWithQuotes = "(?:((?<MaybeWithSingleQuote>&#92;&#92;')|())|((?<MaybeWithDoubleQuote>&#92;&#92;&#92;")|()))" #
public const string EndWithQuotesIfExists = "(?<EndWithQuotesIfExists>(?(MaybeWithDoubleQuote)&#92;&#92;&#92;"|(?<EndWithQuotesIfExists>(?(MaybeWithSingleQuote)&#92;&#92;'|))))" #