Extracting text from a string
Claudio Grondi
claudio.grondi at freenet.de
Thu Sep 7 14:56:58 EDT 2006
Tempo wrote:
> Okay, so it sounds like I am in the right direction. However, I am not
> sure that the text is in a string or some other format becasue the
> string is enclosed in "[" and "]", not in ' '.
>
In case you have it like ['the string'], the actual string will be:
['the string'][0].
Just use IDLE to test your ideas:
>>> ['the string'][0]
'the string'
>>>
Claudio Grondi
More information about the Python-list
mailing list