Skip to main content

Introducing Formengine - The New Formbuilder, try for FREE formengine.io.

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>(?(MaybeWithBracket)[\\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 = "(?:((?<MaybeWithSingleQuote>\\')|())|((?<MaybeWithDoubleQuote>\\\")|()))(?<FindParameter>(?<MaybeWithBracket>@\\()|(?<WithoutBracket>(?<=[^\\w]|^|\\\\n)@))(?<ParameterName>(?(MaybeWithBracket)[\\w ]+(\\.[\\w ]+)*|\\w+(\\.\\w+)*))((?<MaybeExistsFormat>:(?!\\s*@))|())(?<Format>(?(MaybeExistsFormat)(?(MaybeWithBracket)([^\"'()]|(?<=\\\\)(\\(|\\)|\\\"|'))*|[^\\(\\)\\{\\}\\[\\]\\s\\\"']*)|))(?<EndWithBracketIfExists>(?(MaybeWithBracket)\\)|))(?<EndWithQuotesIfExists>(?(MaybeWithDoubleQuote)\\\"|(?<EndWithQuotesIfExists>(?(MaybeWithSingleQuote)\\'|))))"
Returns
TypeDescription
string