Re: not working

2019-09-17 Thread Piet van Oostrum
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

Re: re not working

2019-09-16 Thread MRAB
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

re not working

2019-09-16 Thread CrazyVideoGamez
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

Re: not working

2019-05-14 Thread Igor Korot
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!! >

Re: not working

2019-05-14 Thread Grant Edwards
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