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())
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())