Dude,
Try
@shortenedwords = split (/\/action/, @webaddress,1);
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 14, 2001 3:21 PM
To: [EMAIL PROTECTED]
Subject: string question
I am receiveing these long website addresses and I want to shorten them
after a certain symbol like a question mark or a word like "/action". Is
there an easy way to do that?
EX:
http://www.website.net/action.lasso?-database=Links_Engine
TO:
http://www.website.net/action.lasso
OR EVEN
http://www.website.net