Re: Extracting text from a string + note

2006-09-07 Thread samir
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

Re: Extracting text from a string + note

2006-09-07 Thread bearophileHUGS
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