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.
Tagged Expressions (Example)
 Description                               Up Contents Index Back
─────Programmer's WorkBench─────────────────────────────────────────────────
 
     The tagged expressions:
 
          UNIX                  Non-UNIX
 
          \([A-Za-z]+\)==\1     {[A-Za-z]+}==$1
 
     match one or more letters followed by two equal signs (==) and a
     repetition of the letters. They match the first two strings below,
     but not the third:
 
          ABCxyz==ABCxyz
          i==i
          ABCxyz==KBCxjj
 
     The following example finds one or more hexadecimal digits
     followed by the letter H. Each matching string is replaced by a
     string that consists of the original digits (which were tagged so
     they could be reused) and the prefix 16#.
 
       1. Find strings of the form '<hexdigits>H' with the UNIX and
          non-UNIX patterns:
 
               \([0-9a-fA-F]+\)H
               {[0-9a-fA-F]+}H
 
          These patterns can also be expressed by using the predefined
          pattern for hexadecimal digits:
 
               \(\:h*\)H
               {:h}H
 
       2. Replace with the patterns:
 
               16#\1
               16#$1
 
     See
 
     Aligning Tagged Expressions
     Tagged Expressions in Build:Message
                                    -♦-