[issue14068] problem with re split

2012-02-20 Thread
启朗 杨 added the comment: sure,here is an simple string from the news1.xml -- Added file: http://bugs.python.org/file24589/news1.xml ___ Python tracker <http://bugs.python.org/issue14

[issue14068] problem with re split

2012-02-20 Thread
启朗 杨 added the comment: i use python to handle some string. here is my code: # -*- coding: utf-8 -*- from lxml import etree import collectcorpus import re doc = etree.parse("news1.xml") root = doc.getroot() children = root.getchildren() flag = 1 for child in children: if f

[issue14068] problem with re

2012-02-20 Thread
Changes by 启朗 杨 : -- nosy: 启朗.杨 priority: normal severity: normal status: open title: problem with re ___ Python tracker <http://bugs.python.org/issue14

[issue14068] problem with re split

2012-02-20 Thread
New submission from 启朗 杨 : i use python to handle some string. here is my code: # -*- coding: utf-8 -*- from lxml import etree import collectcorpus import re doc = etree.parse("/home/harveyang/workspace/corpus/newsscrapy/news1.xml") root = doc.getroot() children = root.getchild