Reputation: 27
I know it sounds confusing but this is what I want.
ABC@123: to the changed to ABC@123:ABC
Basically, I need to replicate the texts before the "@" and paste it at the end of the line. Is there any command that can be implemented in the Notepadd++ ?? And the file has more than 100K lines, so please suggest me easy solutions.
Thanks in advance.
Upvotes: 0
Views: 506
Reputation: 91430
^([^@]+)@.+$
$0$1
. matches newline
Explanation:
^ # beginning of line
([^@]+) # group 1, 1 or more any character that is not @
@ # @ character
.+ # 1 or more any character
$ # end of line
Replacement:
$0 # the whole match
$1 # content of group 1 (everything before @)
Screenshot (before):
Screenshot (after):
Upvotes: 2