j
k
j a
j l
Pierre Barbier de Reuille wrote:
Or you want to have some "partition" method which accept regular expressions: head, sep, tail = some_str.partition(re.compile(sep+'.'*offset))
Or you want to have some "partition" method which accept regular expressions:
head, sep, tail = some_str.partition(re.compile(sep+'.'*offset))
Neat! +1 on regexps as an argument to partition(). --eric
Back to the thread
Back to the list