BeautifulSoup. You need a good html parsing, not some one-shot code to handle one tiny unflexable pattern.
On Thu, Jul 17, 2008 at 3:07 AM, Alexnb <[EMAIL PROTECTED]> wrote: > > Hello > > Lets say I have a string: > > --a href="/browse/brick"--brick--/a-- > > The -- needs to be replaced with < or > where applicable. > > and I want the "brick" out of that string (the second brick that is). How > can I get just the "brick" out of that string? > -- > View this message in context: > http://www.nabble.com/Getting-a-unknown-word-out-of-a-list-with-no-spaces-tp18502758p18502758.html > Sent from the Python - python-list mailing list archive at Nabble.com. > > -- > http://mail.python.org/mailman/listinfo/python-list > -- Read my blog! I depend on your acceptance of my opinion! I am interesting! http://ironfroggy-code.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list