I've noticed an odd issue with the latest TextPad (maybe be in older versions, but I've never noticed it before). I don't know if it's by error or design. If I perform a regular expression on a selected set of lines, and if the line following the selection is empty [i.e., contains just a end-of-line character(s)], the expression will also be performed on that line. If the following lines is NOT empty, the expression will not be performed.
For example: If I use the find expression "^.*$" with the replacement expression "//$&" to comment-out the selected lines for C or C++, it will also comment-out the line following the selection, if and only if, it is blank.
It's not a big deal, but an oddity.
DrX
Odd Issue
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
-
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm
-
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm
My case is different. I often have to add to the row either by prefixing something or suffixing something to the row. Examples:ben_josephs wrote:Regexes match strings. An anchor is a regex that matches a zero-length string in some specific context (such as the beginning of a line).
^
IM,
or
$
,D
Textpad always processes these commands on the last blank line. I've simply remove the last line but I would prefer it not behave in this way. This is a bug.