Python Programming - Standard Libraries - Discussion
Discussion Forum : Standard Libraries - General Questions (Q.No. 65)
65.
Which module in Python provides support for working with regular expressions in a more advanced and powerful manner than the
re
module?
Answer: Option
Explanation:
import regex as re
# Example usage of regex module
pattern = re.compile(r'\b(\w+)\b')
text = "This is a sample text."
matches = pattern.findall(text)
print(matches)
Discussion:
Be the first person to comment on this question !
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers