Hello everybody,

I need your help with regular expressions. I want to loop through a directory 
in my codebase and return a list of href tags. The href value for ex must be in 
this format. #request.udf.geturl(NUMERIC VALUE,STRING)#

<a href="#request.udf.geturl(111,pagename)#" class="btn" title="Free">FREE</a>

Here's what I have for now:

<cfset thisPath = ExpandPath( "\view")>
<cfdirectory action="list" directory="#thisPath#" name="viewDir" recurse="true" 
filter="dsp_*.cfm" />

Processing #viewDir.recordcount# files.. <br/>

<cfloop query="viewDir">
        #viewDir.name#
        <cffile action="read" file="#viewDir.directory#\#viewDir.name#" 
variable="contents" charset="utf-8">
<!--- Regex goes here! --->
</cfloop>

Can someone do me a big favour and send me the regular expression to match the 
string in the way I have mentioned? Many thanks in advance.

Regards,

John 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310854
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to