Hey Regex Gurus, heres what I'm trying to do.

On my blog I want any code that I place between [blog-code] and [/blog-code]
to be color coded. I created a CFC that does the color coding that I pass my
entry into as a string. Now inside my CFC I want to only replace the code
inside my code block colorized.

What I was thinking was this:

<cffunction>
        <cfargument name="myData">
        <cfset var myData=Arguments.myData>
        <cfset var myDataBefore=(Some Regex that will return all data before
[blog-code])>
        <cfset var myDataToBeColorized=(Some Regex that will return all data
between [blog-code] and [/blog-code])>
        <cfset var myDataAfter=(Some Regex that will return all data after
[/blog-code])>

        <cfset myDataToBeColorized=(Do colorizing)>

        <cfset myReturn=myDataBefore&myDataToBeColorized&myDataAfter>

        <cfreturn myReturn>
</cffunction>

So I need to know what or how to write the regex for myDataBefore,
myDataAfter and how to get the data between.

Any help is appreciated.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Host with the leader in ColdFusion hosting. 
Voted #1 ColdFusion host by CF Developers. 
Offering shared and dedicated hosting options. 
www.cfxhosting.com/default.cfm?redirect=10481

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to