Programmer's WorkBench (pwb.hlp) (Table of Contents; Topic list)
Non-UNIX Regular Expression Example
                                             Up Contents Index Back
─────Programmer's WorkBench─────────────────────────────────────────────────
 
     To find the next occurrence of a number (a string of digits) that
     begins with the digit 1 or 2:
 
       1. Execute Arg Arg («arg» «arg»).
 
       2. Type '[12][0-9]*'
 
       3. Execute Psearch («psearch»).
 
     Regular expressions are most powerful when they are used together.
     For example, the combination of the wildcard (?) and repeat (*)
     operators
 
          ?*
 
     matches any string of characters. This expression is useful when
     it is part of a larger expression, such as
 
          B?*ing
 
     which matches any string beginning with 'B' and ending with 'ing'.
                                    -♦-