Advertisement
simeonshopov

Find Variables

Feb 20th, 2020
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.12 KB | None | 0 0
  1. import re
  2.  
  3. text =  input()
  4.  
  5. variables = re.findall('(?<= _)[a-zA-Z0-9]+(?=\s|$)', text)
  6.  
  7. print(','.join(variables))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement