如要处理以下markdown:
# I miss you my name is Gina, This is my cloum: [sdf df](http://zhuanlan.zhihu.com/xxxzzz) and this is my weibo:[sina blog](https://link.zhihu.com/?target=http%3A//weibo.com/u/2355944%3Fis_hot%3D1)
我写的代码:
from __future__ import unicode_literals, print_function
import re
content='''
# I miss you
my name is Gina,
This is my cloum: [sdf
df](http://zhuanlan.zhihu.com/xxxzzz)
and this is my weibo:[sina blog](https://link.zhihu.com/?target=http%3A//weibo.com/u/2355944%3Fis_hot%3D1)
'''
linklist = re.findall('\[(.+?)\]\((.+?)\)',content,re.S)
for link in linklist:
link[0].replace("\r\n","")
link[1].replace("\r\n","")
link[1].replace('https://ref.zhihu.com/?redrict=','')
print (content)显而易见的。。以上代码不能运行。。如何得到我想要的:
# I miss you my name is Gina, This is my cloum: [sdfdf](http://zhuanlan.zhihu.com/xxxzzz) and this is my weibo:[sina blog](http://weibo.com/u/2355944?is_hot=1)
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...