Hi,
how could I allow in a string, that a character only repeats max. 2 times?
e.g. someone enters a guestbook message like
-> "hi alllllllllllllll i am here!!!!!!!!!!!!!!!"
and a function makes
-> "hi all i am here!!"
of it, i am thinking and trying with preg_replace, but cannot figure it out, hope some1 could help, thx 🙂
mavvy