0
s = "1234Bananas"
s = re.sub(r"\d", "", s)  

I know this will select the digits 1234, but what does the lowercase r stands for and do?

re.sub(**r**"\d", "", s)  
Willem Van Onsem
  • 397,926
  • 29
  • 362
  • 485
Mr Mystery Guest
  • 1,378
  • 15
  • 45

0 Answers0