RegexMode

enum RegexMode : Enum<FileContentReplacer.RegexMode>

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

Since

2017.1

Entries

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.

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 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.

Properties

Link copied to clipboard
val name: String
Link copied to clipboard
val ordinal: Int