Regular expression lib.

C Scripting Language
Reference Manual
Version 4.4.0

<< Back  End  Next >>
 
 
INDEX
Introduction
Installation
Using the CSL executive
Language
Directives
System library
String library
Math library
Regular expression lib.
   Basic matching rules
   Additional syntax specs
   Order of precedence
   rexClose
   rexMatch
   rexOpen
   Sample
File library
Database library
Async Communication
Registry/Profile handling
Windows control
C API
C++ Class Interface
CSL links
  

Regular Expressions (REs) are used to determine if a character string of interest is matched somewhere in a set of character strings. You can specify more than one character string for which you wish to determine if a match exists.

The functions in this library use regular expressions in a similar way to the UNIX awk, ed, grep, and egrep commands.

The search for a matching sequence starts at the beginning of the string and stops when the first sequence matching the expression is found. The first sequence is the one that begins earliest in the string. If the pattern permits matching several sequences at this starting point, the longest sequence is matched.

To use a regular expression, first compile it with rexOpen. You can then use rexMatch to compare the compiled expression to several strings. When you have finished with the expression, use rexClose to free it from memory.

Files

ZcRexLib.dll
The implemented functions

ZcRexLib.csl
External declarations used when loading at runtime

Globals

Identifier Description
rexVersion Current version of the library
rexCompiler Compiler the library was built by (IBM, BORLAND, MICROSOFT, GNU)
rexBuilt Date and time when the library was compiled
rexLibtype Interface the library is using (API or NATIVE = C++ class interface)
rexMatchNotbol
rexMatchNoteol
Modes for rexMatch
rexOpenExtended
rexOpenIgnorecase
rexOpenNewline
rexOpenNosubreps
Flags used by rexOpen

  Copyright © IBK Landquart Last revision: 27.05.2002 << Back  Top  Next >>