Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extracting a link from text block returned from HTTPService

Status
Not open for further replies.

dgwillia

Programmer
Nov 25, 2008
1
GB
I would like to extract a link from a block of text. The text gets passed in by a HTTPService call and the I loop throuhg each object to disply the text of each object as row within a table.

However the text almost always contains a url in, so I would like to extract the link within the block of text and display within another column.

For example, the following text shows a typical response from the HTTPService..

Loch Fyne Whiskies announces bottling of 2010
I would like to extract the link from the above text.. any ideas?

Thanks
 
You'll probably want to use your typical string functions, particularly substr which is the AS equivalent to mid. You could try using regex as well to match the URL.


Vegans are friends, not food...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top