how to detect duplicates in text lines?

how to detect duplicates in text lines?

hi

need make script which can find duplicates in text lines
see example of text in attach

there are numbers with dots "344.213.34" and without dots "34421324" at same time
and there is about maximum 50 lines in text field

using which function can we detect duplicates on validate?