Programmer's WorkBench (pwb.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Non-UNIX Regular Expression Summary
                                             Up Contents Index Back
─────Programmer's WorkBench─────────────────────────────────────────────────
 
     The following table summarizes the special characters in non-UNIX
     regular-expression syntax.
 
     \c          Escape: literal character <c>
     ?           Wildcard: any character
     ^           Beginning of line
     $           End of line
     [class]     Character class: any one character in set
     [~class]    Inverse class: any one character not in set
     x*          Repeat: zero or more occurrences of <x>
     x+          Repeat: one or more occurrences of <x>
     x@          Repeat: maximal zero or more occurrences of <x>
     x#          Repeat: maximal one or more occurrences of <x>
     (x)         Grouping: group subexpression for repetition
     (x!y!z)     Alternation: match one from the set
     ~x          "Not": fail if <x> at this point
     x^n         "Power": match <n> copies of <x>
     {x}         Tagged expression
     $n          Reference to tagged expression number <n>
     :e          Predefined expression
 
                 Syntax   Description
 
                 :a       Alphanumeric character
                 :b       White space
                 :c       Alphabetic character
                 :d       Digit
                 :f       Part of a filename
                 :h       Hexadecimal number
                 :i       C-style identifier
                 :n       Unsigned number
                 :p       Path
                 :q       Quoted string
                 :w       English word
                 :z       Unsigned integer
 
     See
 
     Aligning Tagged Expressions
     Non-UNIX Regular Expression Example
     Non-UNIX Matching Method
     Predefined Regular Expressions
     UNIX Regular Expression Summary
                                    -♦-