os.path.split va bene, ma previa ripulitura della stringa sorgente.
2011/9/5 Daniele Varrazzo <[email protected]>: > On Mon, 5 Sep 2011 16:38:46 +0200, Massimiliano della Rovere > > <[email protected]> wrote: >> se la stringa che ti serve è l'unica che contiene un punto potresti > usare: >>>>> re.search(r'\b(?P<stringa>\w+\.\w+)\b', x).groupdict() > >> 2011/9/5 Marco Bizzarri <[email protected]>: >>> Io ti suggerirei: >>> >>> import re > >>> 2011/9/5 Valerio Pachera <[email protected]> > >>>> p = re.compile('/.*\.raw') > > ... > > scusate, ma in tutto questo usare os.path.split() no? È fatto apposta. > > > -- > Daniele Varrazzo - Develer S.r.l. > http://www.develer.com > _______________________________________________ > Python mailing list > [email protected] > http://lists.python.it/mailman/listinfo/python > _______________________________________________ Python mailing list [email protected] http://lists.python.it/mailman/listinfo/python
