id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking	branch_state	votes
4526	Wrong string replacement using regular expression with $-sign (end of line)	sabitov		"I suppose, this problem concerns a similar problem described in the ticket #4525

== How to reproduce ==

 1 Run mcedit and type in these lines:
 {{{
111
112
113
114
115
121
122
<empty line here>
 }}}

 2 Go to the beginning of the file and press F4
 3 Fill in the form this way:
 {{{
 ""Enter search string:"" .$
 ""Enter replacement string:"" 7
 (*) ""Regular expression""
 }}}

 4 <OK> -> <All>

 The correct result MUST be:
 {{{
117
117
117
117
117
127
127
<empty line here>
 }}}

 As a result you'll get this text:
 {{{
1177117711771177117712771277
<THERE IS NO! empty line here>
 }}}

 == That's wrong ==
This regex has to change only the last char in each line. ""Newline"" symbols should be ignored.

 a) The last chars are replaced in all lines. It's correct.
 b) But all ""newline"" symbols are changed by ""7"" also. This isn't correct!


PS. It seems to me that the algorithm should ignore the symbols \r and \n always, except when the user specifies them explicitly.
"	defect	closed	major	4.8.32	mcedit	4.8.27	fixed			4525		no branch	
