[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #57633] Allow search/replace CR and LF in GUI

From: Torsten Lilge
Subject: [Octave-bug-tracker] [bug #57633] Allow search/replace CR and LF in GUI editor
Date: Mon, 20 Jan 2020 14:35:58 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0 Safari/605.1.15 Epiphany/605.1.15

Follow-up Comment #6, bug #57633 (project octave):

Some more information aside the problem with LF and CR:

* Any control character can be search in RegExp mode by just entering \xHH
into the search field. This searches for the Hex-Character HH, e.g., \x00 for
NUL and \x07 for BEL (see [1], no. 12)
* Unfortunately, the same syntax does not work for the replace strings.
Entering \xHH for the replace string just leads to \xHH in the text.
* However, using \a, \t, \f etc as replace strings works.
* \0 does not work, it is used for the complete matched expression (comparable
to \1, \2 etc. when using RegExp).

An extended mode as the one of notepad++ might help for the replace string. In
this case, we could parse for \x and then insert the following control
character HH instead of the string \xHH.

[1]  https://www.scintilla.org/SciTERegEx.html


Reply to this item at:


  Message sent via Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]