Sign in to follow this  
Followers 0
litlmike

StringDelete, StringTrim?

5 posts in this topic

I have a value that will return in this format below, it comes as a string of words followed by a line break with a weblink. The first line can be a string of any words, and the weblink below it can be any weblink. I just need the string of words. So I need to some how delete the weblink that is accompanied with the words.

Format:

one two three

http://www.[secret]/[secret]-travel.cfm

I am getting the value from a webpage (that I am not allowed to give out here), and the value comes from an element in a table array like,

$aArray2[$Col][$i]

Thanks in Advance.

Share this post


Link to post
Share on other sites



Something like this. From the top of my head so I haven ot tested it.

$data = "words words words" & @CRLF & "http://web.server.link.com/page"
$words = StringTrimRight($data,StringLen($data) -  StringInStr($data, @CR))

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0