63 lines
2.4 KiB
HTML
63 lines
2.4 KiB
HTML
|
<HTML>
|
||
|
<HEAD>
|
||
|
<meta charset="UTF-8">
|
||
|
<title>FileContentReplacer.RegexMode - </title>
|
||
|
<link rel="stylesheet" href="../../../style.css">
|
||
|
</HEAD>
|
||
|
<BODY>
|
||
|
<a href="../../index.html">jetbrains.buildServer.configs.kotlin.v10.buildFeatures</a> / <a href="../index.html">FileContentReplacer</a> / <a href="./index.html">RegexMode</a><br/>
|
||
|
<br/>
|
||
|
<h1>RegexMode</h1>
|
||
|
<code><span class="keyword">enum</span> <span class="keyword">class </span><span class="identifier">RegexMode</span></code>
|
||
|
<p>Controls the way the search pattern and the replacement text
|
||
|
are interpreted.</p>
|
||
|
<p><strong>Since</strong><br/>
|
||
|
2017.1</p>
|
||
|
<h3>Enum Values</h3>
|
||
|
<table>
|
||
|
<tbody>
|
||
|
<tr>
|
||
|
<td>
|
||
|
<p><a href="-f-i-x-e-d_-s-t-r-i-n-g-s.html">FIXED_STRINGS</a></p>
|
||
|
</td>
|
||
|
<td>
|
||
|
<p>Treat both the search pattern and the replacement text as
|
||
|
fixed strings, similarly to <code>grep -F|--fixed-strings</code>.
|
||
|
<a href="http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html#LITERAL">LITERAL</a> mode is on.
|
||
|
Equivalent to un-checking the <strong>Regex</strong> box in the <em>File ContentReplacer</em> UI.</p>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>
|
||
|
<p><a href="-r-e-g-e-x.html">REGEX</a></p>
|
||
|
</td>
|
||
|
<td>
|
||
|
<p>Treat both the search pattern and the replacement text as
|
||
|
regular expressions. Trailing <code>\</code> or single <code>$</code> characters
|
||
|
are not allowed in the replacement text.
|
||
|
<a href="http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html#MULTILINE">MULTILINE</a> mode is on by default.
|
||
|
Equivalent to checking the <strong>Regex</strong> box in the <em>File ContentReplacer</em> UI.
|
||
|
This is the only mode in <em>TeamCity</em> 9.1 and 10.0 and the default one
|
||
|
since 2017.1.</p>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>
|
||
|
<p><a href="-r-e-g-e-x_-m-i-x-e-d.html">REGEX_MIXED</a></p>
|
||
|
</td>
|
||
|
<td>
|
||
|
<p>Treat the search pattern as a regular expression (similarly
|
||
|
to <a href="-r-e-g-e-x.html">REGEX</a>), but <a href="http://docs.oracle.com/javase/6/docs/api/java/util/regex/Matcher.html#quoteReplacement(java.lang.String)">quote</a> the
|
||
|
replacement text (as in <a href="-f-i-x-e-d_-s-t-r-i-n-g-s.html">FIXED_STRINGS</a> mode). <code>\</code> and <code>$</code>
|
||
|
characters have no special meaning.
|
||
|
<a href="http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html#MULTILINE">MULTILINE</a> mode is on by default.
|
||
|
Useful if the replacement text contains <code>%build.parameters%</code> which
|
||
|
may be expanded to an arbitrary value.
|
||
|
This mode is not available via the <em>TeamCity</em> UI.</p>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</BODY>
|
||
|
</HTML>
|