Thread (einfache) regex
(6 answers)
Opened by Duff at 2007-07-18 11:06 Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 #!/usr/bin/perl use strict; use warnings; my $t = '20070716194009'; $t =~ s/(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})/$3.$2.$1 $4:$5:$6/; print $t; <!--EDIT|RPerl|1184743808--> |