[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:
<https://savannah.gnu.org/bugs/?57633>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #57633] Allow search/replace of special characters like tab, bell, CR, \0, etc. in GUI editor, Philip Nienhuis, 2020/01/19
- [Octave-bug-tracker] [bug #57633] Allow search/replace of special characters like tab, bell, CR, \0, etc. in GUI editor, Torsten Lilge, 2020/01/19
- [Octave-bug-tracker] [bug #57633] Allow search/replace of special characters like tab, bell, CR, \0, etc. in GUI editor, Torsten Lilge, 2020/01/19
- [Octave-bug-tracker] [bug #57633] Allow search/replace of special characters like tab, bell, CR, \0, etc. in GUI editor, Philip Nienhuis, 2020/01/19
- [Octave-bug-tracker] [bug #57633] Allow search/replace of special characters like tab, bell, CR, \0, etc. in GUI editor, Torsten Lilge, 2020/01/20
- [Octave-bug-tracker] [bug #57633] Allow search/replace CR and LF in GUI editor, Philip Nienhuis, 2020/01/20
- [Octave-bug-tracker] [bug #57633] Allow search/replace CR and LF in GUI editor,
Torsten Lilge <=