1. Home
  2. Data Science
  3. Python
  4. Which Python module is used for regular expressions?

Added 16 Sep 2025

Which Python module is used for regular expressions?

  1. regex
  2. re Correct answer
  3. string
  4. pattern

Correct answer

B. re

15 views

MCQSEXAM

Explanation

The re module provides regular expression matching operations similar to Perl.

Reference

Asked in: GATE CS, UGC NET

https://docs.python.org/3/library/re.html

Preparing for an exam?

Doubts & discussion

Not sure why the answer is B? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Python MCQs

Practise all Python MCQs

Similar MCQs