rexOpen

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
  
rexOpen(                                 // compile regular expression
   const pattern,                           // pattern to compile
  [const flags]);                           // open flags

Compiles the source regular expression in pattern into an executable version and returns a handle for subsequent calls to rexMatch and rexClose.

flags defines the attributes of the compilation process:

Flag Description
rexOpenExtended Support extended regular expressions.
rexOpenIgnorecase Ignore case in match.
rexOpenNewline Treat new-line character as a special end-of-line character; it then establishes the line boundaries matched by the ^ and $ patterns, and can only be matched within a string explicitly using \n. (If you omit this flag, the new-line character is treated like any other character.)
rexOpenNosubreps Ignore the number of subexpressions specified in pattern. When you compare a string to the compiled pattern (using rexMatch), the string must match the entire pattern. rexMatch then returns a value that indicates only if a match was found; it does not indicate at what point in the string the match begins, or what the matching string is.

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