home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 2: PC / frozenfish_august_1995.bin / bbs / d09xx / d0957.lha / PARex / PARexScripts / StripCTRL.pxs < prev    next >
Text File  |  1993-11-24  |  1KB  |  34 lines

  1. ; PARex v3.xx script: "PAREX:StripCTRL.pxs"
  2. ; ~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~
  3. ; Update: 13-Nov-93
  4.  
  5. ; $VER: StripCTRL.pxs 39.004 (13.11.93) PARex v3.xx script for StripCTRL.
  6.  
  7. ; NOTE: not all AmigaDOS print control sequences are catched here! Only the
  8. ;       most common will be discarded. One can easily append this script
  9. ;       to strip other control sequences as well!
  10.  
  11.    REPL \ec           BY "" CASE FIXCASE
  12.    REPL \e[?m|\e[??m  BY "" CASE FIXCASE WILD  ; (1)
  13.    REPL \e[?v         BY "" CASE FIXCASE WILD
  14.    REPL \e[?w         BY "" CASE FIXCASE WILD
  15.    REPL "\e[?\"z"     BY "" CASE FIXCASE WILD  ; '".."' used since '\"' appears
  16.    REPL \e[?p         BY "" CASE FIXCASE WILD
  17.  
  18.    REPL \r            BY ""                    ; remove CR's ($0D)
  19.  
  20.    EXITPXS  ; just let PARex know it can stop reading the script from here...
  21.  
  22. ; --Comments--
  23.  
  24. o  CASE is used to denote that we need to check on a case-sensitive basis. The use
  25.    of FIXCASE is used to indicate that now matter what program options are used,
  26.    the command must be checked case-sensitive!
  27.  
  28. o  (1) Don't use "#?" or "*" wildcards since PARex could then also discard some
  29.    characters of the text itself. E.g. "\e[2vDummyText" would result in "myText"
  30.    instead of DUMMYTEXT, since the searching for "\e[*v" is done after "\e[*m"
  31.    has failed, and since a wildcard is used, PARex would also search in the text
  32.    itself! So be aware how you define your searchStrings!
  33.  
  34.