Order of precedence

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
  

Like CSL operators, the regular expression (RE) syntax specifiers are processed in a specific order. The order of precedence for basic regular expressions (BREs) and extended regular expressions (EREs) are described below, from highest to lowest. The specifiers in each category are also listed in order of precedence.

The order of precedence for regular expressions is:

Collation-related bracket symbols [==]    [::]    [..]
Special characters \spec_char
Bracket expressions [
Subexpressions and back references \( \)    \n
Repetition *    \{m\}    \{m,\}    \{m,n\}
Concatenation  
Anchoring ^    $

The order of precedence for Extended Regular Expressions is:

Collation-related bracket symbols [==]    [::]    [..]
Special characters \spec_char
Bracket expressions [
Grouping ( )
Repetition *    +    ?    {m}    {m,}    {m,n}
Concatenation  
Anchoring ^    $
Alternation |

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