Solved

Coldfusion - Locate dynamic strings within a sting and extract

Posted on 2007-11-16
3
281 Views
Last Modified: 2013-12-24
Consider the string snippet below...

**********************************************************************

href='https://dibbs2.bsm.dla.mil/Downloads/Awards/16NOV07/SPM40005D9413431R.pdf' title='Click to view Contract in PDF format'>SPM40005D9413<img src='/Images/icons/icon_pdf_cert.gif' alt='PDF document' width='16' height='16' hspace='2' border='0' align='top'></a></td><td headers='h3' valign='top' nowrap>431R</td><td headers='h4' valign='top' align='CENTER' nowrap><a href='JavaScript:void(0)' onClick='openNewWindow("/Refs/cage.asp?cage=78286", "cage", 450, 200)' title='Click to perform a CAGE Search on 78286'>78286</a></td><td headers='h5' valign='top' align='right' nowrap>11/16/2007</td><td align='right' valign='top' nowrap>$6,665.76</td><td headers='h7' valign='top'>2995013454828<br>QUADRANT,POWER CONT</td><td headers='h8' valign='top' nowrap>0017044304<br></td><td headers='h9' valign='top' nowrap>11/16/2007</td></tr><tr bgcolor='#F7F9FB'><td headers='h1' valign='top' align='right' nowrap>265</td><td headers='h2' valign='top' nowrap><a href='https://dibbs2.bsm.dla.mil/Downloads/Awards/16NOV07/SPM40005D9413431S.pdf' title='Click to view Contract in PDF format'>SPM40005D9413<img src='/Images/icons/icon_pdf_cert.gif' alt='PDF document' width='16' height='16' hspace='2' border='0' align='top'></a></td><td headers='h3' valign='top' nowrap>431S</td><td headers='h4' valign='top' align='CENTER' nowrap><a href='JavaScript:void(0)' onClick='openNewWindow("/Refs/cage.asp?cage=78286", "cage", 450, 200)' title='Click to perform a CAGE Search on 78286'>78286</a></td><td headers='h5' valign='top' align='right' nowrap>11/16/2007</td><td align='right' valign='top' nowrap>$8,142.48</td><td headers='h7' valign='top'>1615011677473<br>LOCK PIN ASSEMBLY,F</td><td headers='h8' valign='top' nowrap>0017040758<br></td><td headers='h9' valign='top' nowrap>11/16/2007</td></tr><tr bgcolor='#FFFFFF'><td headers='h1' valign='top' align='right' nowrap>266</td><td headers='h2' valign='top' nowrap><a href='https://dibbs2.bsm.dla.mil/Downloads/Awards/16NOV07/SPM40005D9413431T.pdf' title='Click to view Contract in PDF format'>SPM40005D9413<img src='/Images/icons/icon_pdf_cert.gif' alt='PDF document' width='16' height='16' hspace='2' border='0' align='top'></a></td><td headers='h3' valign='top' nowrap>431T</td><td headers='h4' valign='top' align='CENTER' nowrap><a href='JavaScript:void(0)' onClick='openNewWindow("/Refs/cage.asp?cage=78286", "cage", 450, 200)' title='Click to perform a CAGE Search on 78286'>78286</a></td><td headers='h5' valign='top' align='right' nowrap>11/16/2007</td><td align='right' valign='top' nowrap>$735.24</td><td headers='h7' valign='top'>1560000279064<br>FLANGE,ADAPTER,BLOW</td><td headers='h8' valign='top' nowrap>0017042457<br></td><td headers='h9' valign='top' nowrap>11/16/2007</td></tr><tr bgcolor='#F7F9FB'><td headers='h1' valign='top' align='right' nowrap>267</td><td headers='h2' valign='top' nowrap><a href='https://dibbs2.bsm.dla.mil/Downloads/Awards/16NOV07/SPM40005D9413431U.pdf' title='Click to view Contract in PDF format'>SPM40005D9413<img src='/Images/icons/icon_pdf_cert.gif' alt='PDF document' width='16' height='16' hspace='2' border='0' align='top'></a></td><td headers='h3' valign='top' nowrap>431U</td><td headers='h4' valign='top' align='CENTER' nowrap><a href='JavaScript:void(0)' onClick='openNewWindow("/Refs/cage.asp?cage=78286", "cage", 450, 200)' title='Click to perform a CAGE Search on 78286'>78286</a></td><td headers='h5' valign='top' align='right' nowrap>11/16/2007</td><td align='right' valign='top' nowrap>$10,962.83</td><td headers='h7' valign='top'>1560014091333<br>FLOOR,AIRCRAFT</td><td headers='h8' valign='top' nowrap>0017042647<br></td><td headers='h9' valign='top' nowrap>11/16/2007</td></tr><tr bgcolor='#FFFFFF'><td headers='h1' valign='top' align='right' nowrap>268</td><td headers='h2' valign='top' nowrap><a href='https://dibbs2.bsm.dla.mil/Downloads/Awards/16NOV07/SPM40005D9413431V.pdf' title='Click to view Contract in PDF format'>SPM40005D9413<img src='/Images/icons/icon_pdf_cert.gif' alt='PDF document' width='16' height='16' hspace='2' border='0' align='top'></a></td><td headers='h3' valign='top' nowrap>431V</td><td headers='h4' valign='top' align='CENTER' nowrap><a href='JavaScript:void(0)' onClick='openNewWindow("/Refs/cage.asp?cage=78286", "cage", 450, 200)' title='Click to perform a CAGE Search on 78286'>78286</a></td><td headers='h5' valign='top' align='right' nowrap>11/16/2007</td><td align='right' valign='top' nowrap>$21,925.66</td><td headers='h7' valign='top'>1560014091333<br>FLOOR,AIRCRAFT</td><td headers='h8' valign='top' nowrap>0017042647<br></td

**********************************************************************

I need a solution to search this string and pul out the.... links

https://dibbs2.bsm.dla.mil/Downloads/Awards/16NOV07/SPM40005D9413431U.pdf 
All the links end with a different file name.
Thank You




0
Comment
Question by:cottyengland
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 

Author Comment

by:cottyengland
ID: 20309313
Moderator,
I found my own solution at http://www.cftagstore.com/tags/cfreextract.cfm
It woks perfectly.

Thank you
0
 

Author Comment

by:cottyengland
ID: 20309343
Exactly how do I close this question?

Thank you
0
 

Accepted Solution

by:
EE_AutoDeleter earned 0 total points
ID: 20968312
Furiam,
Because you have presented a solution to your own problem which may be helpful to future searches, this question is now PAQed and your points have been refunded.

EE_AutoDeleter
0

Featured Post

Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question