Solved

Coldfusion - Locate dynamic strings within a sting and extract

Posted on 2007-11-16
3
272 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
  • 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

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…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

746 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now