2016-01-22 23:47 GMT+01:00 mg :
> Il Fri, 22 Jan 2016 21:10:44 +0100, Vlastimil Brom ha scritto:
>
>> [...]
>
> You explanation of re.findall() results is correct. My point is that the
> documentation states:
>
> re.findall(pattern, string, flags=0)
> Return all non-overlapping matches of patte
Il Fri, 22 Jan 2016 21:10:44 +0100, Vlastimil Brom ha scritto:
> 2016-01-22 16:50 GMT+01:00 mg :
>> Il Fri, 22 Jan 2016 15:32:57 +, mg ha scritto:
>>
>>> python 3.4.3
>>>
>>> import re re.search('(ab){2}','abzzabab')
>>> <_sre.SRE_Match object; span=(4, 8), match='abab'>
>>>
>> re.findall(
2016-01-22 16:50 GMT+01:00 mg :
> Il Fri, 22 Jan 2016 15:32:57 +, mg ha scritto:
>
>> python 3.4.3
>>
>> import re re.search('(ab){2}','abzzabab')
>> <_sre.SRE_Match object; span=(4, 8), match='abab'>
>>
> re.findall('(ab){2}','abzzabab')
>> ['ab']
>>
>> Why for search() the match is 'abab'
Il Fri, 22 Jan 2016 15:32:57 +, mg ha scritto:
> python 3.4.3
>
> import re re.search('(ab){2}','abzzabab')
> <_sre.SRE_Match object; span=(4, 8), match='abab'>
>
re.findall('(ab){2}','abzzabab')
> ['ab']
>
> Why for search() the match is 'abab' and for findall the match is 'ab'?
find
mg wrote:
> python 3.4.3
>
> import re
> re.search('(ab){2}','abzzabab')
> <_sre.SRE_Match object; span=(4, 8), match='abab'>
>
re.findall('(ab){2}','abzzabab')
> ['ab']
>
> Why for search() the match is 'abab' and for findall the match is 'ab'?
I suppose someone thought it was convenient
On Jul 16, 2:29 pm, koranthala wrote:
> It is not that I do want to do the work for them. It is just that I
> was in the same position just 6 months back. My first pieces of code
> were very poor - full of errors and quite horrible indeed. I was even
> afraid to post it anywhere. I came here, and
On Jul 16, 7:30 am, alex23 wrote:
> On Jul 15, 5:51 pm, koranthala wrote:
>
> > I am not saying that what you said was wrong, only that I felt that
> > she got tense looking up regular expressions. So a python reply which
> > basically does the basic checking without going to re etc might be
>
On Jul 15, 5:51 pm, koranthala wrote:
> I am not saying that what you said was wrong, only that I felt that
> she got tense looking up regular expressions. So a python reply which
> basically does the basic checking without going to re etc might be
> more helpful for her to start her own coding
On Jul 15, 11:56 am, alex23 wrote:
> On Jul 15, 4:50 pm, alex23 wrote:
>
> > amr...@iisermohali.ac.in wrote:
> > > I tried but its not coming.
>
> > How much are you prepared to pay for help with this? Or are you just
> > asking us to do all the work for you?
>
> Or to be a _little_ less blunt: i
On Jul 15, 11:13 am, amr...@iisermohali.ac.in wrote:
> Dear all,
>
> Just one more thing i want to ask that suppose i have a file like:---
>
> 47 8 ALA H H 7.85 0.02 1
> 48 8 ALA HA H 2.98 0.02 1
> 49 8 ALA HB H 1.05
On Tue, Jul 14, 2009 at 11:13 PM, wrote:
>
> Dear all,
>
> Just one more thing i want to ask that suppose i have a file like:---
>
>
> 47 8 ALA H H 7.85 0.02 1
> 48 8 ALA HA H 2.98 0.02 1
> 49 8 ALA HB H 1.05 0.02
On Jul 15, 4:50 pm, alex23 wrote:
> amr...@iisermohali.ac.in wrote:
> > I tried but its not coming.
>
> How much are you prepared to pay for help with this? Or are you just
> asking us to do all the work for you?
Or to be a _little_ less blunt: if you want people here to _assist_
you with _your_
amr...@iisermohali.ac.in wrote:
> I tried but its not coming.
How much are you prepared to pay for help with this? Or are you just
asking us to do all the work for you?
--
http://mail.python.org/mailman/listinfo/python-list
13 matches
Mail list logo