re.split(':|;|px', "width:150px;height:50px;float:right")

You could recognize that the delimiter you want to strip is in fact px; and not px in and of itself.

So, try:

re.split(':|px;', "width:150px;height:50px;float:right")

Emile




--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to