rexOpen

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
  
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 andrexClose.

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 LandquartLast revised by Peter Koch, 24.02.00<< Back  Top  Next >>