Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import re
- rstr = """
- Address The Westshore Grand,
- A Tribute Portfolio Hotel, Tampa
- Telephone 52 70 90 00
- E-mail info.suchona@gmail.com
- Address hotels near 1255 north palm ave
- sarasota florida
- Telephone 62 40 80 00
- E-mail info.niit@hotmail.com
- """
- address = re.findall(r'(Address.+)',rstr)[0].strip()
- phone = re.findall(r'(Telephone.+)',rstr)[0].strip()
- email = re.findall(r'(E-mail.+)',rstr)[0].strip()
- print(f'{address}n{phone}n{email}')
- Address The Westshore Grand,
- Telephone 52 70 90 00
- E-mail info.suchona@gmail.com
- The Westshore Grand, A Tribute Portfolio Hotel, Tampa
- 52 70 90 00
- info.suchona@gmail.com
- hotels near 1255 north palm ave sarasota florida
- 62 40 80 00
- info.niit@hotmail.com
Add Comment
Please, Sign In to add comment