Solved

Coldfusion - Locate dynamic strings within a sting and extract

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
JKS to store upstart data 2 96
New OSQA server has a ton of fake users 4 62
How do disable only TLSv1.0 in Oracle Sun One 7.1 Server 9 92
WEB Farm 6 69
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…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

813 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

16 Experts available now in Live!

Get 1:1 Help Now