Thread Regex in split (14 answers)
Opened by PETER_PAN2009 at 2010-11-13 13:44

renee
 2010-11-14 12:24
#142738 #142738
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
Warum nicht mit CPAN:File::Basename arbeiten?

Code: (dl )
perl -MFile::Basename -e 'my ($file,$path,$suffix) = fileparse( "./hackday.txt", qr/\..*?\z/ ); print "$path -> $file -> $suffix\n" '


Edit: Regex non-greedy gemacht
OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/)
--

Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html
Perl-Entwicklung: http://perl-services.de/

View full thread Regex in split