Regular Expression Lib.

C Styled Script
Reference Manual

<< Back  End  Next >>
 
 
INDEX
Introduction
Installation
Using The CSS Executive
Language
Directives
System Library
String Library
Regular Expression Lib.
   Basic Matching Rules
   Additional Syntax Specs
   Order Of Precedence
   rexClose
   rexMatch
   rexOpen
   Sample
File Library
Database Library
C API
C++ API
CSS 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

KcRexLib.dll
The implemented functions

KcRexLib.hss
External declarations used when loading at runtime

Globals

Identifier Description
rexVersion Current version of the library
rexOpenExtended
rexOpenIgnorecase
rexOpenNewline
rexOpenNosubreps
Flags used by rexOpen
rexMatchNotbol
rexMatchNoteol
Modes for fileOpen
 Copyright © IBK LandquartLast revised by Peter Koch, 24.02.00<< Back  Top  Next >>