Skip to main content

Class RegexPattern

Inheritance

↳ object

    RegexPattern

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

Fields

Parameter

Copy pattern is possible because this is constant. For this enough hover the mouse over the variable.
If you want to copy string dont forget remove then extra quotes inside pattern. In string of "'@document.Employee.Amount:format' and '@(document.Employee.Amount:format)'" finds "@document.Employee.Amount:format" and "@(document.Employee.Amount:format)"

Declaration
public const string Parameter = "(?<FindParameter>(?<MaybeWithBracket>@\\()|(?<WithoutBracket>(?<=[^\\w]|^|\\\\n)@))(?<ParameterName>((?<=\\()(((\\w\\s*\\w*)+(\\.\\w+)*)+)|(?<=@)\\w+(\\.\\w+)*))((?<MaybeExistsFormat>:(?!\\s*@))|())(?<Format>(?(MaybeExistsFormat)(?(MaybeWithBracket)([^\"()]|(?<=\\\\)(\\(|\\)|\\\"))*|[^\\(\\)\\{\\}\\[\\]\\s\\\"]*)|))(?<EndWithBracketIfExists>(?(MaybeWithBracket)\\)|))"
Returns
TypeDescription
string

ParameterAndMaybeQuotes

Copy pattern is possible because this is constant. For this enough hover the mouse over the variable.
If you want to copy string dont forget remove then extra quotes inside pattern. In string of "'@document.Employee.Amount:format' and '@(document.Employee.Amount:format)'" finds "'@document.Employee.Amount:format'" and "'@(document.Employee.Amount:format)'"

Declaration
public const string ParameterAndMaybeQuotes = "((?<MaybeWithQuotes>\\\"|\\')|())(?<FindParameter>(?<MaybeWithBracket>@\\()|(?<WithoutBracket>(?<=[^\\w]|^|\\\\n)@))(?<ParameterName>((?<=\\()(((\\w\\s*\\w*)+(\\.\\w+)*)+)|(?<=@)\\w+(\\.\\w+)*))((?<MaybeExistsFormat>:(?!\\s*@))|())(?<Format>(?(MaybeExistsFormat)(?(MaybeWithBracket)([^\"()]|(?<=\\\\)(\\(|\\)|\\\"))*|[^\\(\\)\\{\\}\\[\\]\\s\\\"]*)|))(?<EndWithBracketIfExists>(?(MaybeWithBracket)\\)|))(?<EndWithQuotesIfExists>(?(MaybeWithQuotes)[\\\"|\\']|))"
Returns
TypeDescription
string