Skip to main content

Class 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.

Inheritance

↳ object

    RegexPattern.Groups

Inherited Members

Equals(object)

Equals(object, object)

GetHashCode()

GetType()

MemberwiseClone()

ReferenceEquals(object, object)

ToString()

Namespace: OptimaJet.Workflow.Core.CodeActions

Assembly: OptimaJet.Workflow.Core.dll

Syntax
public static class RegexPattern.Groups

Fields

ParameterName

In '@document.Employee.Amount:format' or '@(document.Employee.Amount:format)' finds 'document.Employee.Amount'

Declaration
public const string ParameterName = "(?<ParameterName>((?<=\\()(((\\w\\s*\\w*)+(\\.\\w+)*)+)|(?<=@)\\w+(\\.\\w+)*))"
Returns
TypeDescription
string

FindParameter

In '@document.Employee.Amount:format' or '@(document.Employee.Amount:format)' finds '@' '@('

Declaration
public const string FindParameter = "(?<FindParameter>(?<MaybeWithBracket>@\\()|(?<WithoutBracket>(?<=[^\\w]|^|\\\\n)@))"
Returns
TypeDescription
string

MaybeWithBracket

Declaration
public const string MaybeWithBracket = "(?<MaybeWithBracket>@\\()"
Returns
TypeDescription
string

EndWithBracketIfExists

Declaration
public const string EndWithBracketIfExists = "(?<EndWithBracketIfExists>(?(MaybeWithBracket)\\)|))"
Returns
TypeDescription
string

WithoutBracket

Declaration
public const string WithoutBracket = "(?<WithoutBracket>(?<=[^\\w]|^|\\\\n)@)"
Returns
TypeDescription
string

MaybeExistsFormat

Declaration
public const string MaybeExistsFormat = "((?<MaybeExistsFormat>:(?!\\s*@))|())"
Returns
TypeDescription
string

Format

In '@document.Employee.Amount:format' or '@(document.Employee.Amount:format)' finds 'format'

Declaration
public const string Format = "(?<Format>(?(MaybeExistsFormat)(?(MaybeWithBracket)([^\"()]|(?<=\\\\)(\\(|\\)|\\\"))*|[^\\(\\)\\{\\}\\[\\]\\s\\\"]*)|))"
Returns
TypeDescription
string

MaybeWithQuotes

Declaration
public const string MaybeWithQuotes = "((?<MaybeWithQuotes>\\\"|\\')|())"
Returns
TypeDescription
string

EndWithQuotesIfExists

Declaration
public const string EndWithQuotesIfExists = "(?<EndWithQuotesIfExists>(?(MaybeWithQuotes)[\\\"|\\']|))"
Returns
TypeDescription
string