Question

What does re.sub(r'(\w+)', r'_\1_', 'hello world') return?

A _hello_ _world_
B _hello_world_
C hello world
D _hello_ _world
Practice Next

Hey! Ask a query

🎓
Think You're Ready for RBI Grade B?
RBI Grade B 2026 Phase 1 Memory Based Paper
  • 200 Questions with Detailed Solutions
  • Section-wise Coverage (GA, English, Quant & Reasoning)