Re: whats wrong with my reg expression ?

2007-01-16 Thread Neil Cerutti
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)

Re: whats wrong with my reg expression ?

2007-01-16 Thread Gert Cuykens
thx it works now -- http://mail.python.org/mailman/listinfo/python-list

whats wrong with my reg expression ?

2007-01-15 Thread Gert Cuykens
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 ? --

Re: whats wrong with my reg expression ?

2007-01-15 Thread James Stroud
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

Re: whats wrong with my reg expression ?

2007-01-15 Thread Gabriel Genellina
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

Re: whats wrong with my reg expression ?

2007-01-15 Thread Gert Cuykens
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

Re: whats wrong with my reg expression ?

2007-01-15 Thread Gabriel Genellina
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')