This patch removes application hangs during the replacement of EOL ("$") in regular expressions mode.
The following bugs are fixed:
RegExp Search/Replace Error - ID: 3275011
Hang in Find and Replace (regex) - ID: 3291634
regex search and replace hangs with pattern /$/ - ID: 3292589
regular expression crash - ID: 3307620
RegEx Replace with $ - ID: 3310603