Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
returns:#!/usr/bin/perl -w my $default_from_domain = 'www.domain.com'; my $unsub = 'un-foo@foo.com un-foo@foo.com'; print $unsub, "\n"; $unsub =~ s/(un-.*)\@(.*)/$1\@$default_from_domain/g ; print $unsub;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: regex search and replace globally
by Enlil (Parson) on Apr 30, 2003 at 01:03 UTC | |
by hv (Prior) on Apr 30, 2003 at 03:09 UTC | |
by Anonymous Monk on Apr 30, 2003 at 17:14 UTC | |
|
Re: regex search and replace globally
by The Mad Hatter (Priest) on Apr 30, 2003 at 00:59 UTC |