Skip to content
Shagru edited this page Apr 8, 2015 · 2 revisions

Welcome to the note wiki!

This is the wiki for notebook pages.

 #via a simple regex:
 def parseInt(sin):
   import re
   m = re.search(r'^(\d+)[.,]?\d*?', str(sin))
   return int(m.groups()[-1]) if m and not callable(sin) else None
Clone this wiki locally