Take the 2-minute tour ×  This question already has an answer
here:  Hi I have been reading up about regular expressions, I
have got some basic res working. I now have been trying to use
Re to sort out data like this:   ...into a tuple but I cannot
get it to work.  Can anyone explain how they would go about
something like this?   share|improve this question what do you
mean by "data like this"? Numeric integers? that sometimes have
3 digits? Whats the pattern you're trying to capture with a
regex? –  Doug T. May 3 '11 at 2:33 I meant to separate every
integer spaced out by a comma into a list. –  freeload247 May 3
'11 at 2:36 add comment  marked as duplicate by tiago, Mike,
Sindre Sorhus, Steve Greatrex, Karl Anderson Aug 5 '13 at 21:20
3 Answers  You don't want regular expressions here.  s = "144,12
31693144,2695953529101130949315647634472399133601089873857416408
6137773096960,26959535291011309493156476344723991336010898738574
164086137773096960,1.00,4295032833,1563,2747941
288,1231823695,26959535291011309493