Which regular expression matches cat and bat, but not at?

PYQ IBPS 2025 (paper not recorded)

Which regular expression matches cat and bat, but not at?

  1. A.

    ^.[cb]at$

  2. B.

    [cat|bat]

  3. C.

    ^at$

  4. D.

    ^[cb]at$

  5. E.

    .*at$

Attempted by 190 students.

Sign up free to check your answer

Sign up free

Explore the full course: Ibps So It Mains

Loading lesson…