but that doesn't work? I think this is common procedure for a lot of forums to shorten long URLs, but i have not found suitable snippet for my own use yet.$_ = "Ipod batteries for Apple Ipod PDAs. Replacement batteries from L +aptops for Less.com.url"; /^(.{1, 20}).*/; $shortened_string = $1;
In reply to how to shorten given string? by mellin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |