in reply to Re: Perl One Liner Regular Expressions
in thread Perl One Liner Regular Expressions

The grouping is not really required. This works pretty fine:
s/^macros.*/macros regex/