Closed tcard closed 10 years ago
goreplace '(Happy) (Christmas|Xmas)' -r '$1 ☃☃ $2 ☃☃'
So Happy Christmas turns into Happy ☃☃ Christmas ☃☃.
Happy Christmas
Happy ☃☃ Christmas ☃☃
(There's a bunch of changes made by go fmt, I hope you don't care.)
go fmt
Thanks a lot for a change! I've been meaning to do that since they introduced that in re, but totally forgot about it. And sure, I don't care about go fmt changes. :)
re
goreplace '(Happy) (Christmas|Xmas)' -r '$1 ☃☃ $2 ☃☃'
So
Happy Christmas
turns intoHappy ☃☃ Christmas ☃☃
.(There's a bunch of changes made by
go fmt
, I hope you don't care.)