Say I have two file names strung together that comes up similar to this:
filenameA.pdffilenameB.pdf
How would I use the Replace command to remove the second file name? I figured
you could use an Asterik to catch extra characters so my first thought was to
try something like the following:
<cfset fileName = "filenameA.pdffilenameB.pdf">
<cfset strTrunctCERT = #fileName#>
<cfset strTruncatedCERT=#Replace(strTrunctCERT, ".pdf*", ".pdf")#>
<!--note the *
-->
<cfoutput>
strTrunctCERT = #strTruncatedCERT#
</cfoutput>
The * does not work. Is there another way to use it?
Thanks!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four
times a year.
http://www.fusionauthority.com/quarterly
Archive:
http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:2050
Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15