RegexMode

Controls the way the search pattern and the replacement text are interpreted.

Since

2017.1

Entries

Link copied to clipboard

Treat both the search pattern and the replacement text as fixed strings, similarly to ``grep -F|--fixed-strings``. LITERAL mode is on. Equivalent to un-checking the Regex box in the File Content Replacer UI.

Link copied to clipboard

Treat both the search pattern and the replacement text as regular expressions. Trailing ``\`` or single ``$`` characters are not allowed in the replacement text. MULTILINE mode is on by default. Equivalent to checking the Regex box in the File Content Replacer UI. This is the only mode in TeamCity 9.1 and 10.0 and the default one since 2017.1.

Link copied to clipboard

Treat the search pattern as a regular expression (similarly to REGEX), but quote the replacement text (as in FIXED_STRINGS mode). ``\`` and ``$`` characters have no special meaning. MULTILINE mode is on by default. Useful if the replacement text contains ``%build.parameters%`` which may be expanded to an arbitrary value. This mode is not available via the TeamCity UI.

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.