N
Nico Grubert
Hi there,
I would like to parse a string in Python.
If the string is e.g. 'http://www.whatever.org' I would like
to generate this string:
'<a href="http://www.whatever.org">http://www.whatever.org</a>'
If the string is e.g. 'My link' 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
I would like to parse a string in Python.
If the string is e.g. 'http://www.whatever.org' I would like
to generate this string:
'<a href="http://www.whatever.org">http://www.whatever.org</a>'
If the string is e.g. 'My link' 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