Choose equivalent precise patterns

A file names.txt contains one filename per line. You need a case-sensitive command that accepts exactly the prefix report_, followed by one or more digits, followed by the literal suffix .txt, with no extra characters. Assume the C locale. Which commands satisfy this requirement for every possible input line? Select all that apply.

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Regular Expressions and Wild Cards Questions: