Project Luther - More regex

Regex are a useful pain in the butt.

Floating point numbers and regex

Methods and attributes of match objects


m = re.match(r"(?P<int>\d+)\.(\d*)\.(.+)", '31.4159.14abc')

m.groups() outputs (‘31’, ‘4159’, ‘14abc’)

Written on September 28, 2016