Solved

Coldfusion - Locate dynamic strings within a sting and extract

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

Database Solutions Engineer FAQs

In this series, we will discuss common questions received as a database Solutions Engineer at Percona. In this role, we speak with a wide array of MySQL and MongoDB users responsible for both extremely large and complex environments to smaller single-server environments.

Question has a verified solution.

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

This is a guide to setting up a new WHM/cPanel Server to be used for web hosting accounts. It is intended for web hosting company administrators and dedicated server owners. For under $99 per month (considering normal rate of Big Data Cetnters like …
One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Suggested Courses

635 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