Very good at PHP, but i've always avoided text manipulations or anything to do with regular expressions as it's my down fall, but i recently i've been trying to learn.
I just need some help with a regular expression to find all URL's in a user inputed string
http://kieranpeat.co.uk
would turn into
[link:http://kieranpeat.co.uk]kieranpeat.co.uk[/link]
or
www.kieranpeat.co.uk/blog.php?id=1345
into
[link:www.kieranpeat.co.uk/blog.php?id=1345]kieranpeat.co.uk / blog[/link]
how easy would the last bit be ? (the part where it strips off the '.php?id=12345' and just displays the page name