
正则表达式在python中选取指定字符,包括换行符
文本为:34|625284|51510|Postedon:Jun4,200709:25am|BreastCancerTopic:Charlotteareameet||01...
文本为:
34|625284|51510|
Posted on: Jun 4, 2007 09:25am
|
Breast Cancer Topic: Charlotte area meet
||0
100|726280|54269|
Posted on: Dec 23, 2008 08:11am, edited Dec 24, 2008 07:38pm by |
Breast Cancer Topic: MERRY CHRISTMAS TO ALL
|My donation has been made In honor of all the wonderful friends I have made @ BC.Org Merry Christmas to all, wishing and praying that we find a cure in 2009. XOXOXOXOXOXO -Cathi|0
我子啊爬取的时候是每一份想要的内容用“|”隔开,所以一份里面应该有6个“|”,以数字开头,以“|0”或“|1”结束,想问大牛改怎么把着一份内容filter出?开头是[\d]+|,结尾是|[\d],请问中间该怎么写,尤其是又到这些个换行符,该怎么搞?非常感谢 展开
34|625284|51510|
Posted on: Jun 4, 2007 09:25am
|
Breast Cancer Topic: Charlotte area meet
||0
100|726280|54269|
Posted on: Dec 23, 2008 08:11am, edited Dec 24, 2008 07:38pm by |
Breast Cancer Topic: MERRY CHRISTMAS TO ALL
|My donation has been made In honor of all the wonderful friends I have made @ BC.Org Merry Christmas to all, wishing and praying that we find a cure in 2009. XOXOXOXOXOXO -Cathi|0
我子啊爬取的时候是每一份想要的内容用“|”隔开,所以一份里面应该有6个“|”,以数字开头,以“|0”或“|1”结束,想问大牛改怎么把着一份内容filter出?开头是[\d]+|,结尾是|[\d],请问中间该怎么写,尤其是又到这些个换行符,该怎么搞?非常感谢 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |