Which command would you use to swap the words hither and yon on any line with any number of words between them? (You need not worry about special punctuation, just uppercase and lowercase letters and spaces.)

What will be an ideal response?

The following command uses a bracketed regular expression (page 1070) to
exchange on the current line the first occurrence of the word hither with the
first following occurrence of yon:
s/hither\(.*\)yon/yon\1hither/
The \1 in the replacement string takes on the value of what the bracketed
regular expression [\(.*\)] matched in the search string.

Computer Science & Information Technology

You might also like to view...

Answer the following statements true (T) or false (F)

1) The XML declaration is mandatory. 2) All XML files must end in the .xml extension 3) A validating parser determines only if the document is well formed. 4) An XML document can optionally reference a DTD or schema that defines the proper structure of the document.

Computer Science & Information Technology

When deriving a class, you should

a. list only base class functions that will be redefined b. list all the member functions of the base class c. make every function a virtual function d. overload all the base class member functions

Computer Science & Information Technology