will create two files.
--
Doug Schwarz
dmschwarzurgrad,rochester,edu
Make obvious changes to get real email address.
--
http://mail.python.org/mailman/listinfo/python-list
]: b.group(1)
Out[5]: ''
In [6]: b.group(2)
IndexError: no such group
The ? tells (.*?) to match as little as possible and that is nothing.
If you change it to (.*) it should do what you want.
--
Doug Schwarz
dmschwarzurgrad,rochester,edu
Make obvious changes to get real email address.
--
http
and
#
print 10
#
It seems to me that this trick works in Python,too.
print 10
#
and
#
print 10
#
You only have to change the first triple quote.
--
Doug Schwarz
dmschwarzurgrad,rochester,edu
Make obvious changes to get real email address.
--
http://mail.python.org/mailman/listinfo
this:
re.findall(.+, foo) # not what I want
['foo']
re.findall(something, foo) # what I want
['f', 'oo']
How's this?
[x[0] for x in re.findall(r'((.)\2*)', 'abbccccccbba')]
['a', 'bb', 'ccc', '', 'ccc', 'bb', 'a']
--
Doug Schwarz
dmschwarzurgrad,rochester,edu
Make obvious
base 12 or pi.
--
Doug Schwarz
dmschwarzurgrad,rochester,edu
Make obvious changes to get real email address.
--
http://mail.python.org/mailman/listinfo/python-list
]
--
Doug Schwarz
dmschwarzurgrad,rochester,edu
Make obvious changes to get real email address.
--
http://mail.python.org/mailman/listinfo/python-list
]
--
Doug Schwarz
dmschwarzurgrad,rochester,edu
Make obvious changes to get real email address.
--
http://mail.python.org/mailman/listinfo/python-list
= eval('len')
length = f([1,2,3])
By the way, are you the Dave Ekhaus I used to work with at Kodak?
--
Doug Schwarz
dmschwarzurgrad,rochester,edu
Make obvious changes to get real email address.
--
http://mail.python.org/mailman/listinfo/python-list