8
6
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
9
<META name="GENERATOR" content="hevea 1.08">
7
<META name="GENERATOR" content="hevea 1.09">
10
8
<LINK rel="stylesheet" type="text/css" href="manual.css">
12
The str library: regular expressions and string processing
9
<TITLE>The str library: regular expressions and string processing</TITLE>
16
<A HREF="manual036.html"><IMG SRC ="previous_motif.gif" ALT="Previous"></A>
17
<A HREF="index.html"><IMG SRC ="contents_motif.gif" ALT="Up"></A>
18
<A HREF="manual038.html"><IMG SRC ="next_motif.gif" ALT="Next"></A>
12
<A HREF="manual036.html"><IMG SRC="previous_motif.gif" ALT="Previous"></A>
13
<A HREF="index.html"><IMG SRC="contents_motif.gif" ALT="Up"></A>
14
<A HREF="manual038.html"><IMG SRC="next_motif.gif" ALT="Next"></A>
21
<H1 CLASS="chapter"><A NAME="htoc255">Chapter 23</A> The str library: regular expressions and string processing</H1>
23
The <TT>str</TT> library provides high-level string processing functions,
16
<H1 CLASS="chapter"><A NAME="htoc255">Chapter�23</A>��The str library: regular expressions and string processing</H1><P>The <TT>str</TT> library provides high-level string processing functions,
24
17
some based on regular expressions. It is intended to support the kind
25
18
of file processing that is usually performed with scripting languages
26
such as <TT>awk</TT>, <TT>perl</TT> or <TT>sed</TT>.<BR>
28
Programs that use the <TT>str</TT> library must be linked as follows:
19
such as <TT>awk</TT>, <TT>perl</TT> or <TT>sed</TT>.</P><P>Programs that use the <TT>str</TT> library must be linked as follows:
30
21
ocamlc <I>other options</I> str.cma <I>other files</I>
31
22
ocamlopt <I>other options</I> str.cmxa <I>other files</I>
33
24
For interactive use of the <TT>str</TT> library, do:
35
26
ocamlmktop -o mytop str.cma
38
29
or (if dynamic linking of C libraries is supported on your platform),
39
start <TT>ocaml</TT> and type <TT>#load "str.cma";;</TT>.<BR>
42
<a HREF="libref/Str.html"> Module <tt>Str</tt>: regular expressions and string processing</a>
49
<A HREF="manual036.html"><IMG SRC ="previous_motif.gif" ALT="Previous"></A>
50
<A HREF="index.html"><IMG SRC ="contents_motif.gif" ALT="Up"></A>
51
<A HREF="manual038.html"><IMG SRC ="next_motif.gif" ALT="Next"></A>
30
start <TT>ocaml</TT> and type <TT>#load "str.cma";;</TT>.</P><UL CLASS="ftoc2"><LI CLASS="li-links">
31
<A HREF="libref/Str.html">Module <TT>Str</TT>: regular expressions and string processing</A>
33
<A HREF="manual036.html"><IMG SRC="previous_motif.gif" ALT="Previous"></A>
34
<A HREF="index.html"><IMG SRC="contents_motif.gif" ALT="Up"></A>
35
<A HREF="manual038.html"><IMG SRC="next_motif.gif" ALT="Next"></A>