All pastes #350514 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-02-11 14:49 UTC
rendered paste body
In [1]: import re

In [2]: a=re.compile(r'^([0-9]+).*')

In [3]: matches=a.match('123123jkjkfdjsfkj324234234')

In [4]: matches.groups()
Out[4]: ('123123',)