View Single Post
Old 08-22-2023, 12:46 AM   #22
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,641
Karma: 7908443
Join Date: Sep 2020
Device: none
Quote:
Originally Posted by Karellen View Post
Thanks.

Why does the Search find the character, then not recognize it when trying to replace it?
Today I had a similar issue in Notepad++ while trying to remove the first character of every line in a text file with regex.

Using ^(.), it would mark the first character occurrences in the search panel, but would not actually replace them ('\1').

Then I found two alternative ways to do it: one is by using ^.?(.*) instead, and the other is surprisingly simple - Alt-selecting vertically the text "column" and deleting it.
Comfy.n is offline   Reply With Quote