fork download
  1. #!/usr/bin/perl
  2. use strict;
  3. use warnings;
  4. my $address = 'http://mail.google.com/belmark';
  5.  
  6. $address =~ s/(\w+:\/\/)(.*.com)(\/\w+)/$1$2\/dev\/public_html/ if ($address =~ /.*\/belmark/);
  7.  
  8. print "Address is: $address";
Success #stdin #stdout 0s 3740KB
stdin
Standard input is empty
stdout
Address is: http://mail.google.com/dev/public_html