I\'ve been looking for an efficient way to do this but haven\'t been able to find it, basically what I need is that given this url for example:
http://localh
How about something like this: