cleansedbb
Technical User
I need help deleting duplicates but I want to allow only one dupe.
i.e. very very is allowed but very very very isnt?
this is what I'm using so far. and it deletes the dupe but it deletes all dupes so I cant have a double.
$FORM{'message'} =~ s/(\b\S+)(\s+\1\b)+/$1/g;
Thanks for any input
i.e. very very is allowed but very very very isnt?
this is what I'm using so far. and it deletes the dupe but it deletes all dupes so I cant have a double.
$FORM{'message'} =~ s/(\b\S+)(\s+\1\b)+/$1/g;
Thanks for any input