Check out the URI module to do it correctly, i think that's th easiest way to parse an URL and modify it wisely.
--In reply to Re: Regex to Truncate URLs Nicely
by fruiture
in thread Regex to Truncate URLs Nicely
by Cody Pendant
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |