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.
Predefined Regular Expressions
                                             Up Contents Index Back
─────Programmer's WorkBench─────────────────────────────────────────────────
 
     PWB predefines the regular expressions in the following table. The
     expressions are listed in quoted non-UNIX syntax, as they would
     appear in a macro definition. Use a predefined expression by
     entering '\:e' (UNIX) or ':e' (non-UNIX).
 
     :e   Description
          Definition
 
     :a   Alphanumeric character
          "[a-zA-Z0-9]"
 
     :b   White space
          "([ \t]#)"
 
     :c   Alphabetic character
          "[a-zA-Z]"
 
     :d   Digit
          "[0-9]"
 
     :f   Part of a filename
          "([~/\\\\ \\\"\\[\\]\\:<|>+=;,.]#!..!.)"
 
     :h   Hexadecimal number
          "([0-9a-fA-F]#)"
 
     :i   C-style identifier
          "([a-zA-Z_$][a-zA-Z0-9_$]@)"
 
     :n   Unsigned number
          "([0-9]#.[0-9]@![0-9]@.[0-9]#![0-9]#)"
 
     :p   Path
          "(([A-Za-z]\\:!)(\\\\!/!)(:f(.:f!)(\\\\!/))@:f(.:f!.!))"
 
     :q   Quoted string
          "(\"[~\"]@\"!'[~']@')"
 
     :w   English word
          "([a-zA-Z]#)"
 
     :z   Unsigned integer
          "([0-9]#)"
                                    -♦-