Author Topic: How to find duplicated text in NP++  (Read 863 times)

I'm sure that I have a piece of text duplicated but everything I found in Google is to remove duplicated text. I want to FIND that text to make sure it's what I need to remove. I'm not going to reread it a billion times to find a small sentence duplicated.

Uhh, select the text, ctrl + f?

ctrl+f
look for it
replace with blank

Reread the OP. I don't know what is duplicated but I am 100% sure something is duplicated.

How do you know its duplicated?
Also only thing you can do is search for each line individually. If a line shows up twice then there y'go.

Reread the OP. I don't know what is duplicated but I am 100% sure something is duplicated.
well there's no way you can deal with that in notepad++
I'm not even sure if there is a way to do it at all, with any program. that's a ridiculously unusual problem

How do you know its duplicated?
Because I made a tool to quickly code complex bricks and I accidentally clicked twice on the same brick. I'm sure of it.

Because I made a tool to quickly code complex bricks and I accidentally clicked twice on the same brick. I'm sure of it.
"I clicked on something twice, it must be copied!"
You'll just have to do what I told you to do, no other thing you can do.

I'm pretty sure this is possible because there's a way to remove duplicated text (which you have no idea which is duplciated, like here) in NP++. I've used it quite a few times but the problem is just that. I don't want it to delete the duplicated text.

"I clicked on something twice, it must be copied!"
It did copy. Another lead of a duplication:
Code: [Select]
complexBuild[64, 2] = brick1x2crestLowEndData 0.5 0.25 1.1 45 0 1 0 0 0 ;
complexBuild[65, 3] = brick1x1fData -1.5 0.5 0.3 50 0 1 0 0 0 ;
64, 2 shouldn't be there. It should be 64, 3 meaning that the count is offset by one.
I really need to add duplication-checking to the tool.

I'm pretty sure this is possible because there's a way to remove duplicated text (which you have no idea which is duplciated, like here) in NP++. I've used it quite a few times but the problem is just that. I don't want it to delete the duplicated text.
uhh, I don't think I've ever seen anything like that. how do you use it?

uhh, I don't think I've ever seen anything like that. how do you use it?
well if he knew then he wouldn't be here

uhh, I don't think I've ever seen anything like that. how do you use it?
You type \b(\w+)(?:\s+\1\b)+ in the Find field. It will delete any duplicated text.

I need the same thing but without deleting the text. Just focus my screen on it.

Just use the find tab instead of the replace tab, and it won't delete anything.

You keep missing the point! I have no idea what is duplicated!

You keep missing the point! I have no idea what is duplicated!
You're not listening to me here. Enter \b(\w+)(?:\s+\1\b)+ in the find field in the find tab. ctrl+f. Select the regex box below it. It will have the same function as before, except it won't delete anything, just like you asked in your other post.