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
Syntaxpublic 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)"
public const string Parameter = "(?<FindParameter>(?<MaybeWithBracket>@\\()|(?<WithoutBracket>(?<=[^\\w]|^|\\\\n)@))(?<ParameterName>(?(MaybeWithBracket)[\\w ]+(\\.[\\w ]+)*|\\w+(\\.\\w+)*))((?<MaybeExistsFormat>:(?!\\s*@))|())(?<Format>(?(MaybeExistsFormat)(?(MaybeWithBracket)([^\"'()]|(?<=\\\\)(\\(|\\)|\\\"|'))*|[^\\(\\)\\{\\}\\[\\]\\s\\\"']*)|))(?<EndWithBracketIfExists>(?(MaybeWithBracket)\\)|))"
Type | Description |
---|---|
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)'"
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)\\'|))))"
Type | Description |
---|---|
string |