QuestionQ24

VerifiedGNU and Unix Commands

What output results when the regular expression s/[ABC] [abc]/xx/ is applied to this string?

ABCabc -

Explanation

The expression matches an uppercase A, B, or C, followed by a space and then a lowercase a, b, or c. No such sequence occurs in the input, so it remains unchanged.

Community Discussion

No comments yet. Be the first to start the discussion!