Jump to content

StringDelete, StringTrim?


 Share

Recommended Posts

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.

Link to comment
Share on other sites

Check out StringRegExp. Or possibly StringTrim[Right|Left] as I'm not sure exactly how you get your data.

Link to comment
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))
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...