r...@zedat.fu-berlin.de (Stefan Ram) writes:
> Supersedes:
>
> MRAB writes:
>> >>> import re
>> >>> pattern = r'[0-9]{4,6}'
>> >>> pattern2 = r'[0-9][0-9][0-9][0-9]([0-9]){0,2}'
>> >>> re.search(pattern, '1234')
>>
>> >>> re.search(pattern2, '1234')
>>
>>They look the same to me.
>
> |>>> import
On 2019-09-17 02:31, CrazyVideoGamez wrote:
For some reason these are different:
pattern = r'[0-9]{4,6}'
And
pattern2 = r'[0-9][0-9][0-9][0-9]([0-9]){0,2}'
And when I try to match them
import re
re.search(pattern, '1234')
and
import re
re.search(pattern2, '1234')
are different. Help?
Pyt
For some reason these are different:
pattern = r'[0-9]{4,6}'
And
pattern2 = r'[0-9][0-9][0-9][0-9]([0-9]){0,2}'
And when I try to match them
import re
re.search(pattern, '1234')
and
import re
re.search(pattern2, '1234')
are different. Help?
--
https://mail.python.org/mailman/listinfo/pytho
On Tue, May 14, 2019 at 11:45 AM Grant Edwards
wrote:
>
> On 2019-05-14, Zacharia Khan wrote:
>
> > python is not working for me can you help fix it
"Help" given.
Thank you.
>
> Yes.
>
> --
> Grant Edwards grant.b.edwardsYow! Hello, GORRY-O!!
>
On 2019-05-14, Zacharia Khan wrote:
> python is not working for me can you help fix it
Yes.
--
Grant Edwards grant.b.edwardsYow! Hello, GORRY-O!!
at I'm a GENIUS from HARVARD!!
gmail.com