Guest User

Untitled

a guest
Dec 16th, 2017
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. s = '100*apple/orange*2-apple'
  2.  
  3. s = '100*fruit.apple/fruit.orange*2-fruit.apple'
  4.  
  5. regex = r'bw+b'
  6. list=re.findall(regex,s)
  7. list1='fruit.' + list
Add Comment
Please, Sign In to add comment