s/(.{2,})\s*\1/$1/g
Anybody called 'John Johnson' or 'Jo Jones' will lose their first name.
In reply to Re^2: How do I check a string for dupicate text?
by Not_a_Number
in thread How do I check a string for dupicate text?
by devgoddess
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |