Regular Expressions and Dividing Strings
James Colannino
james at colannino.org
Tue Nov 8 18:16:35 EST 2005
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 being necessary to the security of a free
state, THE RIGHT of the people to keep and bear arms SHALL NOT BE
INFRINGED." --United States Constitution, Second Ammendment
More information about the Python-list
mailing list