On Tue, 15 Nov 2016, Don Buchholz wrote:

> You need parentheses around the three sub-expressions on the LHS so when
> you try to use \1, \2, and \3 on the RHS, sed will know what matching text
> to use.

Don,

   Yes, I totally forgot that.

> Also, don't forget, you don't have to use the / character as an expression
> delimiter ... If my expressions contain / (e.g. path names), I'll
> generally switch to | or : to save the headache of escaping all the
> forward slashes. E.g. 's: match_expr: replace_expr:' or 's|match
> this|print that|g'.

   I tried a couple of others, but the basic problem overrode them.

Thanks,

Rich

_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to