in reply to Replacing consecutive tokens in 1 pass
#!/usr/bin/perl -w use strict; my $str = "|90|93|foo|bar|91|92|95|96|906|"; $str =~ s/9([0-9]+)?/x/g; print "$str \n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Replacing consecutive tokens in 1 pass
by OM_Zen (Scribe) on Feb 22, 2003 at 23:24 UTC |