Steve,

> I am looking for the python2.7 function(s) to parse a string from a colon 
> character ":"
> 
> Sounds simple enough.
> 
> For example, a string like "123456:789".  I just need the "123456" 
> substring.(left of the :)

How about:

newstr = str[:str.find(':')]

--
GC

Attachment: smime.p7s
Description: S/MIME cryptographic signature

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to