in reply to Re: looking for a regex
in thread looking for a regex
end result@sub=('men','boy','girl'); $s ='25 {fred and barney} text 2.36 12.0 {bam bam} text {pebbles}';
I know I can do this by splitting, substituting and rejoining, but I though there may be a more elegant way.$s ='25 {men} text 2.36 12.0 {boy} text {girl}';
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: looking for a regex
by BrowserUk (Patriarch) on Apr 22, 2003 at 10:50 UTC | |
by demerphq (Chancellor) on Apr 22, 2003 at 15:25 UTC | |
by Anonymous Monk on Apr 22, 2003 at 15:20 UTC |