N
newPeter
Hi,
I am trying to figureout some data from python,
pat = re.compile(r'^(.{3})(\d{1})\w|\s')
pat.search(' 183 14 1 1282 0 2004-11-08/13:26:14.21').groups()
it searches and matches the record rightly: output willbe:
(' 183 ', '1')
but if i am trying to search for one digit e.g,
pat = re.compile(r'^(.{13})(\d{1})\w|\s')
pat.search(' 183 14 1 1282 0 2004-11-08/13:26:14.21').groups()
output is: (Nothing,Nothing)
is there any restrction from Python or my code needs some correction?
Thanks,
SF.
I am trying to figureout some data from python,
pat = re.compile(r'^(.{3})(\d{1})\w|\s')
pat.search(' 183 14 1 1282 0 2004-11-08/13:26:14.21').groups()
it searches and matches the record rightly: output willbe:
(' 183 ', '1')
but if i am trying to search for one digit e.g,
pat = re.compile(r'^(.{13})(\d{1})\w|\s')
pat.search(' 183 14 1 1282 0 2004-11-08/13:26:14.21').groups()
output is: (Nothing,Nothing)
is there any restrction from Python or my code needs some correction?
Thanks,
SF.