Regular expression match/replace bug


#1

I’ve found what I believe to be an RE match/replace replace bug:

  • Start with 3 lines, two terminated by equals sign (=)

    something=
    words
    foobar=

  • Want to change the line termination on all lines with or without an equals-sign to semi-colon. The following RE replacement, replace-all:

    pattern: =*$
    replace: ;

  • Expected

    something;
    words;
    foobar;

  • Got

    something;;;;
    words;;
    foobar;;;;

In Vi I get the correct result.