File: regexps.html

package info (click to toggle)
redet 8.26-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,696 kB
  • sloc: tcl: 38,887; makefile: 58
file content (73 lines) | stat: -rw-r--r-- 2,506 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<!--Time-stamp: <2006-03-01 12:26:10 poser> -->
<HEAD>
   <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
   <META NAME="Author" CONTENT="Bill Poser">

   <TITLE>Redet Reference Manual: Entering Regular Expressions</TITLE>
</HEAD>
<BODY TEXT="#000000" BGCOLOR="#FFE2C0" VLINK="#0000EE" LINK="#AA0066" ALINK="#FF0000">


<H2><a name="regexps">Entering Regular Expressions</a></H2>
<P>
Regular expressions may be entered in six ways:
</p>
<UL>
<LI>By typing in the regular expression window;</LI>
<LI>By copying the contents of the clipboard from the file menu;</LI>
<LI>By loading the contents of a file from the file menu;</LI>
<LI>By recalling an entry from the <a href="#historylist">history list</a>;</LI>
<LI>By inserting components from the <a href="#palette">palette</a>;</LI>
<LI>By inserting components from the <a href="#charclass">character class palette</a>;</LI>
</UL>

<a name="charmap"></a>
<P>
The ability to copy the contents of the clipboard is particularly important
for those who wish to make use of a wide range of characters. Unicode characters
can be selected and copied to the clipboard using a Unicode character map.
Here we see the <a href="http://gucharmap.sourceforge.net/">gucharmap</a>
in which the Japanese <i>hiragana</i>
range has been selected. The character &#x304A; has been selected and inserted twice
into the text region at the bottom of the window. Pressing the <i>Copy</i> button copied
the string &#x304A;&#x304A; to the clipboard.
</P>

<br>
<div align="center">
<img src="Images/UnicodeBrowser.jpg" width="80%" alt="Unicode Browser" border="2">
</div>
<br clear="all">

<P>
The command <i>Load Regular Expression from Clipboard</i> on the file menu
will then insert the selected characters into the regular expression window.
</P>

<br>
<div align="center">
<img src="Images/CopyRegular.jpg" width="60%" alt="The file menu showing the copy regular expression command" border="2">
</div>
<br clear="all">

<P>
Here we see the result of matching this regular expression against a large Japanese lexicon.
</P>

<br>
<div align="center">
<img src="Images/ClipboardUsed.jpg" width="85%" alt="Redet with a regular expression copied from the clipboard" border="2">
</div>
<br clear="all">

<br>
<center><a href="testdata.html">Next</a></center>
<br>
<center><a href="Manual.html">Back to Table of Contents</a></center>
</body>
</html>