0

What is the use of r before "\b in re.search(r"\b d\w+", txt)?

Example:

txt = "Wow! it is a Wonderful day"
x = re.search(r"\bW\w+", txt)
print(x.group())
mkrieger1
  • 19,194
  • 5
  • 54
  • 65
  • @TheEmptyStringPhotographer Don't answer these kinds of questions; find a good target and flag them as duplicates. – InSync Aug 20 '23 at 17:29

0 Answers0