Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. type = re.search(
  2.                 r'(?<=:)(real|number|string|char)',
  3.                 line
  4.             )
  5.  
  6.             if not type:
  7.                 raise Exception('Invalid type.')
  8.             else:
  9.                 type_name = type.group()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement