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.
Word Switch (Examples)
 Word Switch                               Up Contents Index Back
─────Programmer's WorkBench─────────────────────────────────────────────────
 
     The Word switch can be used to change the definition of a 'word'.
     The examples below show some useful word definitions.
 
     The following setting works the same way as the default setting,
     except that Pword and Mword stop at the end of a line:
 
          Word:"\\{[a-zA-Z0-9_$]+\\!$\\}"
 
     The default setting of the Word switch matches Microsoft C
     identifiers and unsigned integers. To restrict the definition of a
     word to match the ANSI C standard for identifiers, you would use
     the setting:
 
          Word:"[a-zA-Z_][a-zA-Z0-9_]*"
 
     Another useful setting is to define a word as a contiguous stream
     of nonspace characters:
 
          Word:"[^ \t]+"
 
     The following Word setting defines a word as an identifier or
     unsigned integer, a stream of whitespace, a stream of other
     characters, or the beginning or end of the line. This causes the
     word movement functions to stop at each boundary, and allows a
     double-click to select whitespace.
 
     Word:"\\{[a-zA-Z0-9_$]+\\![ ]+\\![^a-zA-Z0-9_$]+\\!$\\!^\\}"
 
     See
 
     Regular Expressions
                                    -♦-