Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 57c5d0b722
Fetching contributors…

Cannot retrieve contributors at this time

11 lines (8 sloc) 0.288 kB
import re
regexp = r"[a-z]{2}|[0-9]+"
print re.findall(regexp,"ab") == ["ab"]
print re.findall(regexp,"1") == ["1"]
print re.findall(regexp,"123") == ["123"]
print re.findall(regexp,"a") != ["a"]
print re.findall(regexp,"abc") != ["abc"]
print re.findall(regexp,"abc123") != ["abc123"]
Jump to Line
Something went wrong with that request. Please try again.