Posted By

newsok on 10/26/10


Tagged

double


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

AllKnightAccess


Remove repeated words (case insensitive)


 / Published in: PHP
 

  1. $text = preg_replace("/s(w+s)1/i", "$1", $text);

Report this snippet  

You need to login to post a comment.