Thread (einfache) regex (6 answers)
Opened by Duff at 2007-07-18 11:06

RPerl
 2007-07-18 11:29
#78591 #78591
User since
2006-11-26
384 Artikel
BenutzerIn

user image
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;
\n\n

<!--EDIT|RPerl|1184743808-->

View full thread (einfache) regex