2 Feb
2003
2 Feb
'03
6:04 p.m.
On Sun, 2 Feb 2003 18:18:43 +0100, Albert Hermeling wrote:
Die Methode re.search("<bo>", a) liefert mir zwar ein Match Obkekt aber nur mit den Indexen des Ersten Treffers.
Die Methode re.findall("<bo",a) liefert mir alle <bo> in einer Liste was ich gar nicht gebrauchen kann.
Dann nimm das:
bo = re.compile(r"(</?bo>)") bo.split("bleh <bo> blah </bo> bar") ['bleh ', '<bo>', ' blah ', '</bo>', ' bar']
Ciao, Jürgen _______________________________________________ Python-de maillist - Python-de@starship.python.net http://starship.python.net/mailman/listinfo/python-de