Hi there,

I would like to parse a string in Python.

If the string is e.g. '[url=http://www.whatever.org][/url]' I would like 
to generate this string:
'<a href="http://www.whatever.org";>http://www.whatever.org</a>'

If the string is e.g. '[url=http://www.whatever.org]My link[/url]' I 
would like to generate this string:
'<a href="http://www.whatever.org";>My link</a>'

Any idea how I can do this? Maybe with regular expressions?

Thanks in advance,
Nico
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to