Workflow Engine .NET

Assembly: OptimaJet.Workflow.Core

Class RegexPattern

OptimaJet.Workflow.Core.CodeActions.RegexPattern

public static class RegexPattern

Inheritance

  • System.Object

Fields

public const string Parameter = "(?<FindParameter>(?<MaybeWithBracket>@&#92;&#92;()|(?<WithoutBracket>(?<=[^&#92;&#92;w]|^|&#92;&#92;&#92;&#92;n)@))(?<ParameterName>(?(MaybeWithBracket)[&#92;&#92;w ]+(&#92;&#92;.[&#92;&#92;w ]+)*|&#92;&#92;w+(&#92;&#92;.&#92;&#92;w+)*))((?<MaybeExistsFormat>:(?!&#92;&#92;s*@))|())(?<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;"']*)|))(?<EndWithBracketIfExists>(?(MaybeWithBracket)&#92;&#92;)|))" #
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)"
public const string ParameterAndMaybeQuotes = "(?:((?<MaybeWithSingleQuote>&#92;&#92;')|())|((?<MaybeWithDoubleQuote>&#92;&#92;&#92;")|()))(?<FindParameter>(?<MaybeWithBracket>@&#92;&#92;()|(?<WithoutBracket>(?<=[^&#92;&#92;w]|^|&#92;&#92;&#92;&#92;n)@))(?<ParameterName>(?(MaybeWithBracket)[&#92;&#92;w ]+(&#92;&#92;.[&#92;&#92;w ]+)*|&#92;&#92;w+(&#92;&#92;.&#92;&#92;w+)*))((?<MaybeExistsFormat>:(?!&#92;&#92;s*@))|())(?<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;"']*)|))(?<EndWithBracketIfExists>(?(MaybeWithBracket)&#92;&#92;)|))(?<EndWithQuotesIfExists>(?(MaybeWithDoubleQuote)&#92;&#92;&#92;"|(?<EndWithQuotesIfExists>(?(MaybeWithSingleQuote)&#92;&#92;'|))))" #
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)'"