Searching a string and extract all occurancies of a substring

Gabriel Genellina gagsl-py at yahoo.com.ar
Thu Aug 31 12:02:01 EDT 2006


At Thursday 31/8/2006 12:44, Nico Grubert wrote:

>in a text with no carriage returns I need to look for all occurancies of
>this string:
>
><source id="box"><parameter key="path">...</parameter></source>

Try Beautiful Soup, or if your input is simple enough, the re module.



Gabriel Genellina
Softlab SRL 


	
	
		
__________________________________________________
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya! 
http://www.yahoo.com.ar/respuestas




More information about the Python-list mailing list