Re: Regular Expressions and Dividing Strings

2005-11-08 Thread James Colannino
Christoph Haas wrote: >You probably mean: > >a="root:root" >b,c = a.split(":") > >b and c contain both sides of the colon. > > Thanks. That's exactly what I was looking for. james -- My blog: http://www.crazydrclaw.com/ My homepage: http://james.colannino.org/ "A well regulated militia bei

Re: Regular Expressions and Dividing Strings

2005-11-08 Thread Christoph Haas
On Tuesday 08 November 2005 23:59, James Colannino wrote: > Hey everyone, I have a file containing the following type of data (only > an example): > > root:root > > What I want to do is take this line and divide it into two separate > strings (the ':' character would divide the two strings, so the

Regular Expressions and Dividing Strings

2005-11-08 Thread James Colannino
Hey everyone, I have a file containing the following type of data (only an example): root:root What I want to do is take this line and divide it into two separate strings (the ':' character would divide the two strings, so the result of the example above would be "root" and "root.") The names