Searching a string and extract all occurancies of a substring
Fredrik Lundh
fredrik at pythonware.com
Thu Aug 31 12:40:47 EDT 2006
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>
>
> The ... can contain different values. I need to extract the string
> between <source id="box"><parameter key="path"> and </parameter></source>.
is this XML, or just something that looks a little like XML ?
</F>
More information about the Python-list
mailing list