Thread RegExp (11 answers)
Opened by joey at 2003-09-24 01:19

format_c
 2003-09-24 01:28
#55473 #55473
User since
2003-08-04
1706 Artikel
HausmeisterIn
[Homepage] [default_avatar]
Hi
So in etwa:
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/perl
use warnings;
use strict;


my $var = "/windows/d/Perl/test/3/5/23/7";

$var =~ s%(\d+)/%$1-%g;
$var .= ".txt";

print $var;


Gruß Alex

View full thread RegExp