To replace only the first match to a regular expression, you must pass as an argument to regex_replace.

a. -1
b. format_first_only
c. replace_first_only
d. 0


b. format_first_only

Computer Science & Information Technology

You might also like to view...

To maximize the contrast and tonal range of this image, what changes of the sliders should be made? Show the new positions of the sliders in the histogram provided in Figure 3.42.

Computer Science & Information Technology

After you cut, _____.

A. the text is not removed from its original location and placed on the Clipboard B. the text is removed from its original location and placed on the Clipboard C. the text is removed from its original location and saved in the file D. the text is removed from its original location and placed on the desktop

Computer Science & Information Technology

One way to implement ____ within Ruby is to assign the same name to different methods.

A. Encapsulation B. Polymorphism C. Abstraction D. Inheritance

Computer Science & Information Technology

When a new graphic is inserted into a document, Word positions the graphic behind the text.

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

Computer Science & Information Technology