What would be the easiest way to shorten a URL with preg_replace? Let's say a URL looks like this:
http:/ /someurl.com/file_1/something_else/new/file_2.html
I want to reduce it to let's say 30 characters:
http:/ /someurl.com/file_1/some...
Thanks!
Bookmarks