Python clears non numeric characters from strings

From , 3 Years ago, written in Python, viewed 89 times.
URL https://pastebin.vip/view/95424358
  1. import re  
  2. s = "how19 a*re 254y**ou?"  
  3.  
  4. # Using regular expressions  
  5. print re.sub("\D", "", s)  

Reply to "Python clears non numeric characters from strings"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website