Re: repeating regular expressions in one string

2005-11-16 Thread Fredrik Lundh
"Shane" wrote > I have a bunch of strings that looks like this: > > 'blahblah_sf1234-sf1238_blahblah' > > and I would like to use the re module to parse all the 'sf' parts > of the string. Each 'sf' needs to be its own string when I am > through. How do I compile a regular expression that

Re: repeating regular expressions in one string

2005-11-16 Thread Inyeol Lee
On Wed, Nov 16, 2005 at 03:09:56PM -0500, Shane wrote: > Hi folks, > > I'm new to regular expressions (and a novice at Python) but it seems to be > the tool I need for a particular problem. I have a bunch of strings that > looks like this: > > 'blahblah_sf1234-sf1238_blahblah' > > and I would

Re: repeating regular expressions in one string

2005-11-16 Thread Carl J. Van Arsdall
Shane wrote: > Hi folks, > > I'm new to regular expressions (and a novice at Python) but it seems to be > the tool I need for a particular problem. I have a bunch of strings that > looks like this: > > 'blahblah_sf1234-sf1238_blahblah' > > and I would like to use the re module to parse all the 's

repeating regular expressions in one string

2005-11-16 Thread Shane
Hi folks, I'm new to regular expressions (and a novice at Python) but it seems to be the tool I need for a particular problem. I have a bunch of strings that looks like this: 'blahblah_sf1234-sf1238_blahblah' and I would like to use the re module to parse all the 'sf' parts of the string.