Re: Substitutions in matched patterns?



Anton81 <forum@xxxxxxxxxxxxxxxx> wrote:

> Hi,
>
> what is the easiest way to do substitutions in matched strings.
> For example I want to do s/ABC/DEF/g , but only if the ABC is between
> braces.


s/{ABC}/{DEF}/g;


--
Cheers,
Bernard
.



Relevant Pages