The following removes the right hand bracket from lines like these:
96)
106)
229)
Find what: \)
Replace with: (empty)
(Regex enabled)
But on my first attempt I added an unnecessary '?', i.e:
Find what: \)?
Why did that not only fail to work but consistently crashed TP?
Why does this crash TextPad?
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
Thanks both. This is TextPad 7.6.4 (64-bit Edition), running in Win 10 Version 20H2 (OS Build 19042.1706)
It not only becomes unresponsive here but also prevents access to any other apps. Task Mgr does eventually open but that too is unresponsive, forcing a Restart. Essentially my definition of a crash!
It not only becomes unresponsive here but also prevents access to any other apps. Task Mgr does eventually open but that too is unresponsive, forcing a Restart. Essentially my definition of a crash!
Let's say we start the replacement at position 0.
\)? matches "nothing", i.e. a String of length 0 (which extends from position 0 to position 0).
This string is then replaced by nothing (which starts/ends at position 0).
The start position for the next search is then placed behind the replacement, i.e. at position 0.
Then \)? matches "nothing", i.e. a String of length 0 (which extends from position 0 to position 0).
This string is then replaced by nothing (which starts/ends at position 0).
The start position for the next search is then placed behind the replacement, i.e. at position 0.
Then \)? matches "nothing", i.e. a String of length 0 (which extends from position 0 to position 0).
This string is then replaced by nothing (which starts/ends at position 0).
The start position for the next search is then placed behind the replacement, i.e. at position 0.
Then ...
it might take a while :D to get to another position ...
\)? matches "nothing", i.e. a String of length 0 (which extends from position 0 to position 0).
This string is then replaced by nothing (which starts/ends at position 0).
The start position for the next search is then placed behind the replacement, i.e. at position 0.
Then \)? matches "nothing", i.e. a String of length 0 (which extends from position 0 to position 0).
This string is then replaced by nothing (which starts/ends at position 0).
The start position for the next search is then placed behind the replacement, i.e. at position 0.
Then \)? matches "nothing", i.e. a String of length 0 (which extends from position 0 to position 0).
This string is then replaced by nothing (which starts/ends at position 0).
The start position for the next search is then placed behind the replacement, i.e. at position 0.
Then ...
it might take a while :D to get to another position ...
-
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm
-
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm