Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. text = "hello23 the2e are 13 5.12apples *specially_x00123 named"
  2.  
  3. text_cleaned = "hello## the#e are ## #.##apples *specially_x00123 named"
  4.  
  5. p1 = r'd(?<!*w+_w+)'
  6.  
  7. p2 = r'(?:*[a-z]+_w+)b|d'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement