summaryrefslogtreecommitdiff
path: root/Master/tlpkg/texworks/texworks-help/TeXworks-manual/en/Regularexpressions.html
diff options
context:
space:
mode:
Diffstat (limited to 'Master/tlpkg/texworks/texworks-help/TeXworks-manual/en/Regularexpressions.html')
-rw-r--r--Master/tlpkg/texworks/texworks-help/TeXworks-manual/en/Regularexpressions.html212
1 files changed, 106 insertions, 106 deletions
diff --git a/Master/tlpkg/texworks/texworks-help/TeXworks-manual/en/Regularexpressions.html b/Master/tlpkg/texworks/texworks-help/TeXworks-manual/en/Regularexpressions.html
index e968eb1a3b0..d478e1adc9d 100644
--- a/Master/tlpkg/texworks/texworks-help/TeXworks-manual/en/Regularexpressions.html
+++ b/Master/tlpkg/texworks/texworks-help/TeXworks-manual/en/Regularexpressions.html
@@ -18,7 +18,7 @@
<style type="text/css" xml:space="preserve">
/*<![CDATA[*/
tr.c15 {vertical-align:baseline;}
- td.c14 {white-space:wrap; text-align:left;}
+ td.c14 {white-space:normal; text-align:left;}
td.c13 {white-space:nowrap; text-align:left;}
div.c12 {white-space:nowrap; text-align:left;}
/*]]>*/
@@ -105,41 +105,41 @@ lists the replacement codes.<span class="footnote-mark"><a href=
"x43-53002f4"></a> <!--l. 25--></p>
<p class="noindent"><!--tex4ht:inline--></p>
<div class="tabular">
-<table id="TBL-9" class="tabular" cellspacing="0" cellpadding="0">
-<colgroup id="TBL-9-1g">
-<col id="TBL-9-1" />
-<col id="TBL-9-2" />
+<table id="TBL-12" class="tabular" cellspacing="0" cellpadding="0">
+<colgroup id="TBL-12-1g">
+<col id="TBL-12-1" />
+<col id="TBL-12-2" />
</colgroup>
-<tr class="c15" id="TBL-9-1-">
-<td id="TBL-9-1-1" class="td11 c13">
+<tr class="c15" id="TBL-12-1-">
+<td id="TBL-12-1-1" class="td11 c13">
<div class="multicolumn c12">
Element
</div>
</td>
-<td id="TBL-9-1-2" class="td11 c14">
+<td id="TBL-12-1-2" class="td11 c14">
<!--l. 27-->
<p class="noindent">Meaning</p>
</td>
</tr>
-<tr class="c15" id="TBL-9-2-">
-<td id="TBL-9-2-1" class="td11 c14">
+<tr class="c15" id="TBL-12-2-">
+<td id="TBL-12-2-1" class="td11 c14">
<!--l. 29-->
<p class="noindent"><span class=
"obeylines-h verb ec-lmtt-12">c</span></p>
</td>
-<td id="TBL-9-2-2" class="td11 c14">
+<td id="TBL-12-2-2" class="td11 c14">
<!--l. 29-->
<p class="noindent">Any character represents itself unless it has a
special regexp meaning. Thus c matches the character c.</p>
</td>
</tr>
-<tr class="c15" id="TBL-9-3-">
-<td id="TBL-9-3-1" class="td11 c14">
+<tr class="c15" id="TBL-12-3-">
+<td id="TBL-12-3-1" class="td11 c14">
<!--l. 30-->
<p class="noindent"><span class=
"obeylines-h verb ec-lmtt-12">\c</span></p>
</td>
-<td id="TBL-9-3-2" class="td11 c14">
+<td id="TBL-12-3-2" class="td11 c14">
<!--l. 30-->
<p class="noindent">A special character that follows a backslash
matches the character itself except where mentioned below. For
@@ -148,61 +148,61 @@ a string you would write “<span class=
"obeylines-h verb ec-lmtt-12">\^</span>”.</p>
</td>
</tr>
-<tr class="c15" id="TBL-9-4-">
-<td id="TBL-9-4-1" class="td11 c14">
+<tr class="c15" id="TBL-12-4-">
+<td id="TBL-12-4-1" class="td11 c14">
<!--l. 31-->
<p class="noindent"><span class=
"obeylines-h verb ec-lmtt-12">\n</span></p>
</td>
-<td id="TBL-9-4-2" class="td11 c14">
+<td id="TBL-12-4-2" class="td11 c14">
<!--l. 31-->
<p class="noindent">This matches the ASCII line feed character (LF,
Unix newline, used in T<sub>E</sub>Xworks).</p>
</td>
</tr>
-<tr class="c15" id="TBL-9-5-">
-<td id="TBL-9-5-1" class="td11 c14">
+<tr class="c15" id="TBL-12-5-">
+<td id="TBL-12-5-1" class="td11 c14">
<!--l. 32-->
<p class="noindent"><span class=
"obeylines-h verb ec-lmtt-12">\r</span></p>
</td>
-<td id="TBL-9-5-2" class="td11 c14">
+<td id="TBL-12-5-2" class="td11 c14">
<!--l. 32-->
<p class="noindent">This matches the ASCII carriage return
character (CR).</p>
</td>
</tr>
-<tr class="c15" id="TBL-9-6-">
-<td id="TBL-9-6-1" class="td11 c14">
+<tr class="c15" id="TBL-12-6-">
+<td id="TBL-12-6-1" class="td11 c14">
<!--l. 33-->
<p class="noindent"><span class=
"obeylines-h verb ec-lmtt-12">\t</span></p>
</td>
-<td id="TBL-9-6-2" class="td11 c14">
+<td id="TBL-12-6-2" class="td11 c14">
<!--l. 33-->
<p class="noindent">This matches the ASCII horizontal tab character
(HT).</p>
</td>
</tr>
-<tr class="c15" id="TBL-9-7-">
-<td id="TBL-9-7-1" class="td11 c14">
+<tr class="c15" id="TBL-12-7-">
+<td id="TBL-12-7-1" class="td11 c14">
<!--l. 34-->
<p class="noindent"><span class=
"obeylines-h verb ec-lmtt-12">\v</span></p>
</td>
-<td id="TBL-9-7-2" class="td11 c14">
+<td id="TBL-12-7-2" class="td11 c14">
<!--l. 34-->
<p class="noindent">This matches the ASCII vertical tab character
(VT; almost never used).</p>
</td>
</tr>
-<tr class="c15" id="TBL-9-8-">
-<td id="TBL-9-8-1" class="td11 c14">
+<tr class="c15" id="TBL-12-8-">
+<td id="TBL-12-8-1" class="td11 c14">
<!--l. 35-->
<p class="noindent"><span class=
"obeylines-h verb ec-lmtt-12">\xhhhh</span></p>
</td>
-<td id="TBL-9-8-2" class="td11 c14">
+<td id="TBL-12-8-2" class="td11 c14">
<!--l. 35-->
<p class="noindent">This matches the Unicode character
corresponding to the hexadecimal number hhhh (between 0x0000 and
@@ -211,14 +211,14 @@ corresponding to the hexadecimal number hhhh (between 0x0000 and
to the octal number ooo (between 0 and 0377).</p>
</td>
</tr>
-<tr class="c15" id="TBL-9-9-">
-<td id="TBL-9-9-1" class="td11 c14">
+<tr class="c15" id="TBL-12-9-">
+<td id="TBL-12-9-1" class="td11 c14">
<!--l. 36-->
<p class="noindent"><span class=
"obeylines-h verb ec-lmtt-12">.</span> <span class=
"ec-lmbx-12">(dot)</span></p>
</td>
-<td id="TBL-9-9-2" class="td11 c14">
+<td id="TBL-12-9-2" class="td11 c14">
<!--l. 36-->
<p class="noindent">This matches any character (including newline).
So if you want to match the dot character iteself, you have to
@@ -226,81 +226,81 @@ escape it with “<span class=
"obeylines-h verb ec-lmtt-12">\.</span>”.</p>
</td>
</tr>
-<tr class="c15" id="TBL-9-10-">
-<td id="TBL-9-10-1" class="td11 c14">
+<tr class="c15" id="TBL-12-10-">
+<td id="TBL-12-10-1" class="td11 c14">
<!--l. 37-->
<p class="noindent"><span class=
"obeylines-h verb ec-lmtt-12">\d</span></p>
</td>
-<td id="TBL-9-10-2" class="td11 c14">
+<td id="TBL-12-10-2" class="td11 c14">
<!--l. 37-->
<p class="noindent">This matches a digit.</p>
</td>
</tr>
-<tr class="c15" id="TBL-9-11-">
-<td id="TBL-9-11-1" class="td11 c14">
+<tr class="c15" id="TBL-12-11-">
+<td id="TBL-12-11-1" class="td11 c14">
<!--l. 38-->
<p class="noindent"><span class=
"obeylines-h verb ec-lmtt-12">\D</span></p>
</td>
-<td id="TBL-9-11-2" class="td11 c14">
+<td id="TBL-12-11-2" class="td11 c14">
<!--l. 38-->
<p class="noindent">This matches a non-digit.</p>
</td>
</tr>
-<tr class="c15" id="TBL-9-12-">
-<td id="TBL-9-12-1" class="td11 c14">
+<tr class="c15" id="TBL-12-12-">
+<td id="TBL-12-12-1" class="td11 c14">
<!--l. 39-->
<p class="noindent"><span class=
"obeylines-h verb ec-lmtt-12">\s</span></p>
</td>
-<td id="TBL-9-12-2" class="td11 c14">
+<td id="TBL-12-12-2" class="td11 c14">
<!--l. 39-->
<p class="noindent">This matches a white space.</p>
</td>
</tr>
-<tr class="c15" id="TBL-9-13-">
-<td id="TBL-9-13-1" class="td11 c14">
+<tr class="c15" id="TBL-12-13-">
+<td id="TBL-12-13-1" class="td11 c14">
<!--l. 40-->
<p class="noindent"><span class=
"obeylines-h verb ec-lmtt-12">\S</span></p>
</td>
-<td id="TBL-9-13-2" class="td11 c14">
+<td id="TBL-12-13-2" class="td11 c14">
<!--l. 40-->
<p class="noindent">This matches a non-white space.</p>
</td>
</tr>
-<tr class="c15" id="TBL-9-14-">
-<td id="TBL-9-14-1" class="td11 c14">
+<tr class="c15" id="TBL-12-14-">
+<td id="TBL-12-14-1" class="td11 c14">
<!--l. 41-->
<p class="noindent"><span class=
"obeylines-h verb ec-lmtt-12">\w</span></p>
</td>
-<td id="TBL-9-14-2" class="td11 c14">
+<td id="TBL-12-14-2" class="td11 c14">
<!--l. 41-->
<p class="noindent">This matches a word character or “<span class=
"obeylines-h verb ec-lmtt-12">_</span>”).</p>
</td>
</tr>
-<tr class="c15" id="TBL-9-15-">
-<td id="TBL-9-15-1" class="td11 c14">
+<tr class="c15" id="TBL-12-15-">
+<td id="TBL-12-15-1" class="td11 c14">
<!--l. 42-->
<p class="noindent"><span class=
"obeylines-h verb ec-lmtt-12">\W</span></p>
</td>
-<td id="TBL-9-15-2" class="td11 c14">
+<td id="TBL-12-15-2" class="td11 c14">
<!--l. 42-->
<p class="noindent">This matches a non-word character.</p>
</td>
</tr>
-<tr class="c15" id="TBL-9-16-">
-<td id="TBL-9-16-1" class="td11 c14">
+<tr class="c15" id="TBL-12-16-">
+<td id="TBL-12-16-1" class="td11 c14">
<!--l. 43-->
<p class="noindent"><span class=
"obeylines-h verb ec-lmtt-12">\1</span><span class=
"ec-lmbx-12">,</span> <span class="ec-lmbx-12">…</span></p>
</td>
-<td id="TBL-9-16-2" class="td11 c14">
+<td id="TBL-12-16-2" class="td11 c14">
<!--l. 43-->
<p class="noindent">The n-th back-reference, e.g. <span class=
"obeylines-h verb ec-lmtt-12">\1</span>, <span class=
@@ -308,8 +308,8 @@ escape it with “<span class=
replacement string with capturing patterns—see below</p>
</td>
</tr>
-<tr class="c15" id="TBL-9-17-">
-<td id="TBL-9-17-1" class="td11 c14"></td>
+<tr class="c15" id="TBL-12-17-">
+<td id="TBL-12-17-1" class="td11 c14"></td>
</tr>
</table>
</div><!--l. 48-->
@@ -353,67 +353,67 @@ string can only be comprised of one or two digits (<b>^</b> and
abbreviation, set). <!--l. 65--></p>
<p class="noindent"><!--tex4ht:inline--></p>
<div class="tabular">
-<table id="TBL-10" class="tabular" cellspacing="0" cellpadding="0">
-<colgroup id="TBL-10-1g">
-<col id="TBL-10-1" />
-<col id="TBL-10-2" />
+<table id="TBL-13" class="tabular" cellspacing="0" cellpadding="0">
+<colgroup id="TBL-13-1g">
+<col id="TBL-13-1" />
+<col id="TBL-13-2" />
</colgroup>
-<tr class="c15" id="TBL-10-1-">
-<td id="TBL-10-1-1" class="td11 c14">
+<tr class="c15" id="TBL-13-1-">
+<td id="TBL-13-1-1" class="td11 c14">
<!--l. 67-->
<p class="noindent"><span class=
"obeylines-h verb ec-lmtt-12">E{n,m}</span></p>
</td>
-<td id="TBL-10-1-2" class="td11 c14">
+<td id="TBL-13-1-2" class="td11 c14">
<!--l. 67-->
<p class="noindent">Matches at least <b>n</b> occurrences of the
expression and at most <b>m</b> occurrences of the expression.</p>
</td>
</tr>
-<tr class="c15" id="TBL-10-2-">
-<td id="TBL-10-2-1" class="td11 c14">
+<tr class="c15" id="TBL-13-2-">
+<td id="TBL-13-2-1" class="td11 c14">
<!--l. 68-->
<p class="noindent"><span class=
"obeylines-h verb ec-lmtt-12">E{n}</span></p>
</td>
-<td id="TBL-10-2-2" class="td11 c14">
+<td id="TBL-13-2-2" class="td11 c14">
<!--l. 68-->
<p class="noindent">Matches exactly <b>n</b> occurrences of the
expression. This is the same <b>E{n,n}</b> or as repeating the
expression n times.</p>
</td>
</tr>
-<tr class="c15" id="TBL-10-3-">
-<td id="TBL-10-3-1" class="td11 c14">
+<tr class="c15" id="TBL-13-3-">
+<td id="TBL-13-3-1" class="td11 c14">
<!--l. 69-->
<p class="noindent"><span class=
"obeylines-h verb ec-lmtt-12">E{n,}</span></p>
</td>
-<td id="TBL-10-3-2" class="td11 c14">
+<td id="TBL-13-3-2" class="td11 c14">
<!--l. 69-->
<p class="noindent">Matches at least <b>n</b> occurrences of the
expression.</p>
</td>
</tr>
-<tr class="c15" id="TBL-10-4-">
-<td id="TBL-10-4-1" class="td11 c14">
+<tr class="c15" id="TBL-13-4-">
+<td id="TBL-13-4-1" class="td11 c14">
<!--l. 70-->
<p class="noindent"><span class=
"obeylines-h verb ec-lmtt-12">E{,m}</span></p>
</td>
-<td id="TBL-10-4-2" class="td11 c14">
+<td id="TBL-13-4-2" class="td11 c14">
<!--l. 70-->
<p class="noindent">Matches at most <b>m</b> occurrences of the
expression.</p>
</td>
</tr>
-<tr class="c15" id="TBL-10-5-">
-<td id="TBL-10-5-1" class="td11 c14">
+<tr class="c15" id="TBL-13-5-">
+<td id="TBL-13-5-1" class="td11 c14">
<!--l. 71-->
<p class="noindent"><span class=
"obeylines-h verb ec-lmtt-12">E?</span></p>
</td>
-<td id="TBL-10-5-2" class="td11 c14">
+<td id="TBL-13-5-2" class="td11 c14">
<!--l. 71-->
<p class="noindent">Matches zero or one occurrence of E. This
quantifier effectively means <em>the expression is optional</em>
@@ -421,25 +421,25 @@ quantifier effectively means <em>the expression is optional</em>
<b>E{0,1}</b>.</p>
</td>
</tr>
-<tr class="c15" id="TBL-10-6-">
-<td id="TBL-10-6-1" class="td11 c14">
+<tr class="c15" id="TBL-13-6-">
+<td id="TBL-13-6-1" class="td11 c14">
<!--l. 72-->
<p class="noindent"><span class=
"obeylines-h verb ec-lmtt-12">E+</span></p>
</td>
-<td id="TBL-10-6-2" class="td11 c14">
+<td id="TBL-13-6-2" class="td11 c14">
<!--l. 72-->
<p class="noindent">Matches one or more occurrences of E. This is
the same as <b>E{1,}</b>.</p>
</td>
</tr>
-<tr class="c15" id="TBL-10-7-">
-<td id="TBL-10-7-1" class="td11 c14">
+<tr class="c15" id="TBL-13-7-">
+<td id="TBL-13-7-1" class="td11 c14">
<!--l. 73-->
<p class="noindent"><span class=
"obeylines-h verb ec-lmtt-12">E*</span></p>
</td>
-<td id="TBL-10-7-2" class="td11 c14">
+<td id="TBL-13-7-2" class="td11 c14">
<!--l. 73-->
<p class="noindent">Matches zero or more occurrences of E. This is
the same as <b>E{0,}</b>. Beware, the <b>*</b> quantifier is often
@@ -448,8 +448,8 @@ matches zero or more occurrences, it will match even if the
expression is not present in the string.</p>
</td>
</tr>
-<tr class="c15" id="TBL-10-8-">
-<td id="TBL-10-8-1" class="td11 c14"></td>
+<tr class="c15" id="TBL-13-8-">
+<td id="TBL-13-8-1" class="td11 c14"></td>
</tr>
</table>
</div>
@@ -479,87 +479,87 @@ result of a search. <span class="footnote-mark"><a href=
"x43-55002f6"></a> <!--l. 88--></p>
<p class="noindent"><!--tex4ht:inline--></p>
<div class="tabular">
-<table id="TBL-11" class="tabular" cellspacing="0" cellpadding="0">
-<colgroup id="TBL-11-1g">
-<col id="TBL-11-1" />
-<col id="TBL-11-2" />
+<table id="TBL-14" class="tabular" cellspacing="0" cellpadding="0">
+<colgroup id="TBL-14-1g">
+<col id="TBL-14-1" />
+<col id="TBL-14-2" />
</colgroup>
-<tr class="c15" id="TBL-11-1-">
-<td id="TBL-11-1-1" class="td11 c14">
+<tr class="c15" id="TBL-14-1-">
+<td id="TBL-14-1-1" class="td11 c14">
<!--l. 90-->
<p class="noindent"><span class=
"obeylines-h verb ec-lmtt-12">^</span></p>
</td>
-<td id="TBL-11-1-2" class="td11 c14">
+<td id="TBL-14-1-2" class="td11 c14">
<!--l. 90-->
<p class="noindent">The caret signifies the beginning of the
string. If you wish to match a literal <b>^</b>, you must escape it
by writing <span class="obeylines-h verb ec-lmtt-12">\^</span></p>
</td>
</tr>
-<tr class="c15" id="TBL-11-2-">
-<td id="TBL-11-2-1" class="td11 c14">
+<tr class="c15" id="TBL-14-2-">
+<td id="TBL-14-2-1" class="td11 c14">
<!--l. 91-->
<p class="noindent"><span class=
"obeylines-h verb ec-lmtt-12">$</span></p>
</td>
-<td id="TBL-11-2-2" class="td11 c14">
+<td id="TBL-14-2-2" class="td11 c14">
<!--l. 91-->
<p class="noindent">The dollar signifies the end of the string. If
you wish to match a literal <b>$</b>, you must escape it by writing
<span class="obeylines-h verb ec-lmtt-12">\$</span></p>
</td>
</tr>
-<tr class="c15" id="TBL-11-3-">
-<td id="TBL-11-3-1" class="td11 c14">
+<tr class="c15" id="TBL-14-3-">
+<td id="TBL-14-3-1" class="td11 c14">
<!--l. 92-->
<p class="noindent"><span class=
"obeylines-h verb ec-lmtt-12">\b</span></p>
</td>
-<td id="TBL-11-3-2" class="td11 c14">
+<td id="TBL-14-3-2" class="td11 c14">
<!--l. 92-->
<p class="noindent">A word boundary.</p>
</td>
</tr>
-<tr class="c15" id="TBL-11-4-">
-<td id="TBL-11-4-1" class="td11 c14">
+<tr class="c15" id="TBL-14-4-">
+<td id="TBL-14-4-1" class="td11 c14">
<!--l. 93-->
<p class="noindent"><span class=
"obeylines-h verb ec-lmtt-12">\B</span></p>
</td>
-<td id="TBL-11-4-2" class="td11 c14">
+<td id="TBL-14-4-2" class="td11 c14">
<!--l. 93-->
<p class="noindent">A non-word boundary. This assertion is true
wherever <span class="obeylines-h verb ec-lmtt-12">\b</span> is
false.</p>
</td>
</tr>
-<tr class="c15" id="TBL-11-5-">
-<td id="TBL-11-5-1" class="td11 c14">
+<tr class="c15" id="TBL-14-5-">
+<td id="TBL-14-5-1" class="td11 c14">
<!--l. 94-->
<p class="noindent"><span class=
"obeylines-h verb ec-lmtt-12">(?=E)</span></p>
</td>
-<td id="TBL-11-5-2" class="td11 c14">
+<td id="TBL-14-5-2" class="td11 c14">
<!--l. 94-->
<p class="noindent">Positive lookahead. This assertion is true if
the expression <b>E</b> matches at this point.</p>
</td>
</tr>
-<tr class="c15" id="TBL-11-6-">
-<td id="TBL-11-6-1" class="td11 c14">
+<tr class="c15" id="TBL-14-6-">
+<td id="TBL-14-6-1" class="td11 c14">
<!--l. 95-->
<p class="noindent"><span class=
"obeylines-h verb ec-lmtt-12">(?!E)</span></p>
</td>
-<td id="TBL-11-6-2" class="td11 c14">
+<td id="TBL-14-6-2" class="td11 c14">
<!--l. 95-->
<p class="noindent">Negative lookahead. This assertion is true if
the expression <b>E</b> does not match at this point.</p>
</td>
</tr>
-<tr class="c15" id="TBL-11-7-">
-<td id="TBL-11-7-1" class="td11 c14"></td>
+<tr class="c15" id="TBL-14-7-">
+<td id="TBL-14-7-1" class="td11 c14"></td>
</tr>
</table>
</div><!--l. 100-->