Relative Content

Tag Archive for phppreg-replace

Preg_replace everything except the last 10 letters & numbers

I’ve got a string that contains IP addresses and 10 various letters and numbers right after. Is there a way to keep the last 10 letters/number (there will always be just 10) and just remove the IP addresses with preg_replace or something similar. For instance: