summaryrefslogtreecommitdiff
path: root/Master/tlpkg/texworks/texworks-help/TeXworks-manual/en/Regularexpressions.html
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2021-03-12 00:26:44 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2021-03-12 00:26:44 +0000
commit47713f86b4ec1848fd19e4e942011ae0a0bfe95c (patch)
tree15255ab65db99ffea9a1a847c6ae5651cecf121c /Master/tlpkg/texworks/texworks-help/TeXworks-manual/en/Regularexpressions.html
parent2ba284e7efe0a71f89d925b5ec11f19c1f4e2981 (diff)
texworks 0.6.6
git-svn-id: svn://tug.org/texlive/trunk@58285 c570f23f-e606-0410-a88d-b1316a301751
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.html50
1 files changed, 25 insertions, 25 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 d478e1adc9d..76341f4155e 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:normal; text-align:left;}
+ td.c14 {white-space:wrap; text-align:left;}
td.c13 {white-space:nowrap; text-align:left;}
div.c12 {white-space:nowrap; text-align:left;}
/*]]>*/
@@ -40,24 +40,24 @@
<div class="chapternumber">
B
</div>
-<h1><a id="x43-51000B" name="x43-51000B"></a>Regular
+<h1><a id="x43-52000B" name="x43-52000B"></a>Regular
expressions</h1><!--l. 8-->
<p class="indent">As T<sub>E</sub>Xworks is built on Qt4, the
-available regular expressions<a id="dx43-51001" name=
-"dx43-51001"></a>—which are often referred to as <b>regexp</b>—are
+available regular expressions<a id="dx43-52001" name=
+"dx43-52001"></a>—which are often referred to as <b>regexp</b>—are
a subset of those found in Qt4. See the site of Qt4<span class=
"footnote-mark"><a href="index44.html#fn1x10"><sup class=
-"textsuperscript">1</sup></a></span><a id="x43-51002f1" name=
-"x43-51002f1"></a> for more information. It is possible to find
+"textsuperscript">1</sup></a></span><a id="x43-52002f1" name=
+"x43-52002f1"></a> for more information. It is possible to find
other information about regexps on the net<span class=
"footnote-mark"><a href="index45.html#fn2x10"><sup class=
-"textsuperscript">2</sup></a></span><a id="x43-51003f2" name=
-"x43-51003f2"></a> or from books. But pay attention that not all
+"textsuperscript">2</sup></a></span><a id="x43-52003f2" name=
+"x43-52003f2"></a> or from books. But pay attention that not all
systems (programming languages, editors, …) use the same set of
instructions; there is no “standard set”, unfortunately.</p>
<h3 class="sectionHead"><span class="titlemark">B.1</span> <a id=
-"x43-52000B.1" name="x43-52000B.1"></a>Introduction</h3><a id=
-"dx43-52001" name="dx43-52001"></a> <!--l. 12-->
+"x43-53000B.1" name="x43-53000B.1"></a>Introduction</h3><a id=
+"dx43-53001" name="dx43-53001"></a> <!--l. 12-->
<p class="noindent">When searching and replacing, one has to define
the text to be found. This can be the text itself (e.g.,
“Abracadabra”), but often it is necessary to define the strings in
@@ -79,14 +79,14 @@ the range. This can even be combined: <b>[a-zA-Z0-9]</b> will match
all letters and all numbers. <!--l. 16--></p>
<p class="indent">To define a complementary set<span class=
"footnote-mark"><a href="index46.html#fn3x10"><sup class=
-"textsuperscript">3</sup></a></span><a id="x43-52002f3" name=
-"x43-52002f3"></a>, one uses “<b>^</b>”: the caret negates the
+"textsuperscript">3</sup></a></span><a id="x43-53002f3" name=
+"x43-53002f3"></a>, one uses “<b>^</b>”: the caret negates the
character set if it occurs at the beginning, i.e., immediately
after the opening square bracket. <b>[^abc]</b> matches anything
except <b>a</b>, <b>b</b>, <b>c</b>.</p>
<h3 class="sectionHead"><span class="titlemark">B.2</span> <a id=
-"x43-53000B.2" name="x43-53000B.2"></a>Codes to represent special
-sets</h3><a id="dx43-53001" name="dx43-53001"></a> <!--l. 20-->
+"x43-54000B.2" name="x43-54000B.2"></a>Codes to represent special
+sets</h3><a id="dx43-54001" name="dx43-54001"></a> <!--l. 20-->
<p class="noindent">When using regexps, one very often has to
create a search expession which represents other strings in a
generic way. If you are looking for a string that matches email
@@ -101,8 +101,8 @@ of sets; for example, to instead of manually defining the set of
digits <b>[0-9]</b>, one can use “<b>\d</b>”. The following table
lists the replacement codes.<span class="footnote-mark"><a href=
"index47.html#fn4x10"><sup class=
-"textsuperscript">4</sup></a></span><a id="x43-53002f4" name=
-"x43-53002f4"></a> <!--l. 25--></p>
+"textsuperscript">4</sup></a></span><a id="x43-54002f4" name=
+"x43-54002f4"></a> <!--l. 25--></p>
<p class="noindent"><!--tex4ht:inline--></p>
<div class="tabular">
<table id="TBL-12" class="tabular" cellspacing="0" cellpadding="0">
@@ -321,8 +321,8 @@ as a white space. Under T<sub>E</sub>Xworks the end of line is
referred to by “<span class=
"obeylines-h verb ec-lmtt-12">\n</span>”.</p>
<h3 class="sectionHead"><span class="titlemark">B.3</span> <a id=
-"x43-54000B.3" name="x43-54000B.3"></a>Repetition</h3><a id=
-"dx43-54001" name="dx43-54001"></a> <!--l. 55-->
+"x43-55000B.3" name="x43-55000B.3"></a>Repetition</h3><a id=
+"dx43-55001" name="dx43-55001"></a> <!--l. 55-->
<p class="noindent">One doesn’t work only on single letters,
digits, symbols; most of the time, these are repeated (e.g., a
number is a repetition of digits and symbols—in the right order).
@@ -348,8 +348,8 @@ string can only be comprised of one or two digits (<b>^</b> and
<!--l. 62--></p>
<p class="indent">Here is a table of quantifiers.<span class=
"footnote-mark"><a href="index48.html#fn5x10"><sup class=
-"textsuperscript">5</sup></a></span><a id="x43-54002f5" name=
-"x43-54002f5"></a> E represents an arbitrary expression (letter,
+"textsuperscript">5</sup></a></span><a id="x43-55002f5" name=
+"x43-55002f5"></a> E represents an arbitrary expression (letter,
abbreviation, set). <!--l. 65--></p>
<p class="noindent"><!--tex4ht:inline--></p>
<div class="tabular">
@@ -454,8 +454,8 @@ expression is not present in the string.</p>
</table>
</div>
<h3 class="sectionHead"><span class="titlemark">B.4</span> <a id=
-"x43-55000B.4" name="x43-55000B.4"></a>Alternatives and
-assertions</h3><a id="dx43-55001" name="dx43-55001"></a>
+"x43-56000B.4" name="x43-56000B.4"></a>Alternatives and
+assertions</h3><a id="dx43-56001" name="dx43-56001"></a>
<!--l. 81-->
<p class="noindent">When searching, it is often necessary to search
for alternatives, e.g., apple, pear, or cherry, but not pineapple.
@@ -475,8 +475,8 @@ whole string. <!--l. 85--></p>
correspond to actual characters and will never be part of the
result of a search. <span class="footnote-mark"><a href=
"index49.html#fn6x10"><sup class=
-"textsuperscript">6</sup></a></span><a id="x43-55002f6" name=
-"x43-55002f6"></a> <!--l. 88--></p>
+"textsuperscript">6</sup></a></span><a id="x43-56002f6" name=
+"x43-56002f6"></a> <!--l. 88--></p>
<p class="noindent"><!--tex4ht:inline--></p>
<div class="tabular">
<table id="TBL-14" class="tabular" cellspacing="0" cellpadding="0">
@@ -566,7 +566,7 @@ the expression <b>E</b> does not match at this point.</p>
<p class="indent">Notice the different meanings of <b>^</b> as
assertion and as negation inside a character set!</p>
<h3 class="sectionHead"><span class="titlemark">B.5</span> <a id=
-"x43-56000B.5" name="x43-56000B.5"></a>Final notes</h3>
+"x43-57000B.5" name="x43-57000B.5"></a>Final notes</h3>
<!--l. 104-->
<p class="noindent">Using rexexp is very powerful, but also quite
dangerous; you could change your text at unseen places and