On 2007-01-15, Gert Cuykens [EMAIL PROTECTED] wrote:
thx
PS i also cant figure out what is wrong here ?
rex=re.compile('^(?Pvalue[^]*)$',re.M)
for v in l:
v=rex.match(v).group('value')
v=v.replace('','')
return(l)
thx it works now
--
http://mail.python.org/mailman/listinfo/python-list
rex2=re.compile('^(?Pvalue[^]*)$',re.M)
File /usr/lib/python2.5/re.py, line 180, in compile
return _compile(pattern, flags)
File /usr/lib/python2.5/re.py, line 233, in _compile
raise error, v # invalid expression
sre_constants.error: unexpected end of regular expression
?
--
Gert Cuykens wrote:
rex2=re.compile('^(?Pvalue[^]*)$',re.M)
File /usr/lib/python2.5/re.py, line 180, in compile
return _compile(pattern, flags)
File /usr/lib/python2.5/re.py, line 233, in _compile
raise error, v # invalid expression
sre_constants.error: unexpected end of regular
At Monday 15/1/2007 19:41, Gert Cuykens wrote:
rex2=re.compile('^(?Pvalue[^]*)$',re.M)
[^set-of-forbidden-characters]
--
Gabriel Genellina
Softlab SRL
__
Preguntá. Respondé. Descubrí.
Todo lo que
thx
PS i also cant figure out what is wrong here ?
rex=re.compile('^(?Pvalue[^]*)$',re.M)
for v in l:
v=rex.match(v).group('value')
v=v.replace('','')
return(l)
v=rex.match(v).group('value')
AttributeError: 'NoneType' object has no attribute
At Monday 15/1/2007 20:43, Gert Cuykens wrote:
PS i also cant figure out what is wrong here ?
rex=re.compile('^(?Pvalue[^]*)$',re.M)
for v in l:
v=rex.match(v).group('value')
v=v.replace('','')
return(l)
v=rex.match(v).group('value')