<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-2">
<META content="MSHTML 6.00.2900.2668" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial color=#800000 size=2><SPAN
class=906070807-07072005>Zdravim,</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#800000 size=2><SPAN class=906070807-07072005>taky
jsem spis zacatecnik, ale ja bych to delal takto:</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#800000 size=2><SPAN
class=906070807-07072005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial><FONT color=#800000><FONT size=2><SPAN
class=906070807-07072005>>>> </SPAN>s =
"/mnt/data/cvs/test/projekt"<BR></FONT></FONT></FONT><FONT face=Arial><FONT
color=#800000><FONT size=2><SPAN class=906070807-07072005>>>>
</SPAN>s.split("/")<BR>['', 'mnt', 'data', 'cvs', 'test',
'projekt']<BR></FONT></FONT></FONT><FONT><FONT><FONT face=Arial><FONT
color=#800000><FONT size=2><SPAN class=906070807-07072005>>>>
</SPAN>s.split("/")[-1]<BR>'projekt'<BR></FONT></FONT></FONT></FONT></FONT><FONT><FONT><FONT
face=Arial><FONT color=#800000><FONT size=2><SPAN
class=906070807-07072005>>>>
</SPAN>s.split("/")[-2]<BR>'test'<BR></FONT></FONT></FONT></FONT></FONT></DIV>
<DIV><FONT><FONT><FONT><FONT><SPAN class=906070807-07072005><FONT face=Arial
color=#800000 size=2>Milan
Zmatlo</FONT></SPAN></FONT></FONT></FONT></FONT></DIV>
<DIV><FONT><FONT><FONT><FONT><SPAN class=906070807-07072005><FONT face=Arial
color=#800000 size=2></FONT></SPAN> </DIV></FONT></FONT></FONT></FONT>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> python-bounces@py.cz
[mailto:python-bounces@py.cz]<B>On Behalf Of </B>Martin Jedlička<BR><B>Sent:</B>
Thursday, July 07, 2005 9:03 AM<BR><B>To:</B> python@py.cz<BR><B>Subject:</B>
[python] Hledani v retezci<BR><BR></FONT></DIV>
<DIV><FONT face=Arial size=2>Zdravim,</FONT></DIV>
<DIV><FONT face=Arial size=2> mam takovy zacatecnicky dotaz. Mam
ulozenou v promenne cestu napr. /mnt/data/cvs/test/projekt a potreboval bych v
teto promenne najit retezece, ktere jsou obsazeny mezi lomitky. Tedy
projit ten retezec a vsechny retezce mezi lomitky ukladat do nejakeho pole i s
poslednim retezcem. Jde mi zejmena o posledni retezec (napr. projekt) a
predposledni (napr.test)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Diky moc</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Martin</FONT></DIV></BODY></HTML>