Saluton!
Tempo wrote:
> I am having a little trouble extracting text from a string. The
> string that I am dealing with is pasted below, and I want to
> extract the prices that are contained in the string below.
This string is absolutely an XML chunk.
Just use xmllib.
Adiaux
Samir
--
htt
Tempo:
> I am having a little trouble extracting text from a string. The
> string that I am dealing with is pasted below, and I want to
> extract the prices that are contained in the string below.
This may help:
>>> import re
>>> reg = r"(?<= \$ ) (?: \d* \.? \d* )"
>>> prices = re.compile(r