Re: Need help w/ reqexp, capture and substitue
- From: wix@xxxxxxxxxx (Dennis G. Wicks)
- Date: Sun, 29 Oct 2006 18:56:41 -0600
Shawn Milochik wrote:
This seems to work for me:
#!/usr/bin/perl -w
use strict;
while (<STDIN>) {
chomp;
print "Original: $_\n";
$_ =~ s/^([^@]+)(@.+&\d+&)([&]{5})/$1$2$1$3/;
print "Modified: $_\n";
}
Hope it helps.
Shawn
Thanks Shawn!
That works perfectly!
I just might get finished by Monday AM.
Now I just need to figure out how it works
so I don't beat my head against the desk so much
the next time I need to do something like this.
Regards,
Dennis
.
- Follow-Ups:
- Re: Need help w/ reqexp, capture and substitue
- From: Shawn Milochik
- Re: Need help w/ reqexp, capture and substitue
- References:
- Need help w/ reqexp, capture and substitue
- From: Dennis G. Wicks
- Re: Need help w/ reqexp, capture and substitue
- From: Shawn Milochik
- Need help w/ reqexp, capture and substitue
- Prev by Date: Re: Need help w/ reqexp, capture and substitue
- Next by Date: Re: Need help w/ reqexp, capture and substitue
- Previous by thread: Re: Need help w/ reqexp, capture and substitue
- Next by thread: Re: Need help w/ reqexp, capture and substitue
- Index(es):
Relevant Pages
|
|