home *** CD-ROM | disk | FTP | other *** search
/ ftp.robelle3000.ai 2014 / 2014.06.ftp.robelle3000.ai.tar / ftp.robelle3000.ai / faq / q7.txt < prev    next >
Text File  |  1995-10-11  |  2KB  |  47 lines

  1. Qedit and Strings.
  2.  
  3. Strings play a variety of roles in Qedit. Strings can be delimited by quotes
  4. or by any of the following special characters: | ~ _ ! # > &:. Most Qedit
  5. commands accept a string as a linerange qualifier, but then the commands are
  6. applied only to lines containing that string.
  7.  
  8. One of the forgotten features of Qedit commands is their ability to use
  9. strings as a rangelist. Use this in any command that accepts any rangelist.
  10. You can further qualify strings if you use window options on the string being
  11. searched.
  12.  
  13. Here are some instances where this feature is useful:
  14.  
  15. Deleting all lines with the string "superfluous".
  16.    /delete "superfluous"
  17.  
  18. Deleting all lines without the string "superfluous".
  19.    /delete "superfluous" (nomatch)
  20.  
  21. Change "bug" to "undocumented feature", but only on those lines that have the
  22. string "unexplained".
  23.      /change "bug"undocumented feature" "unexplained"
  24.  
  25. Delete all blank lines.
  26.      /delete "~" (pattern)    {blank lines}
  27.  
  28. Find the next occurrence of the string ".font" that starts in the first
  29. column.
  30.      /find ".font" (1/5)
  31.  
  32. List all occurrences of "Frank", but not in words such as "Frankenstein".
  33.      /list "Frank" (smart)   {ignores "Frankenstein"}
  34.  
  35. By default, Qedit searches for matches to a string. Specifying (NOMATCH)
  36. reverses this logic. Likewise, string searches can be restricted to particular
  37. columns (10/40), or to a caseless search (UPSHIFT).
  38.  
  39. If the string represents a pattern, this should be specified with valid
  40. pattern characters:
  41.  
  42.      @      anything, including nothing    #  single numeric digit
  43.      ?      single alphanumeric digit      ~  zero or more spaces
  44.  
  45. [Taken from the "Qedit's Forgotten Commands" tutorial given at Interex
  46. in Toronto.]
  47.