Anyone know how to do a regular expression that checks to see that a string 
starts with a value, but not return that value in the result.

For example 

<cfset template = '<!--- peace:test1 --->
In the beginning God created the heavens and the earth.
<!--- /peace:test1 --->'>
<cfset templateStart = reMatch('\<\!---\s*\w+\:\w+\s*---\>',template)>
<cfset templateEnd = reMatch('\<\!---\s*\/\w+\:\w+\s*---\>',template)>
<cfset templateBody = 
reMatch('^\<\!---\s*\w+\:\w+\s*---\>.*(?=\<\!---\s*\/\w+\:\w+\s*---\>

I want the value of templateBody to be 'In the beginning God created the 
heavens and the earth.'

If anyone could offer advice on how to achieve this, I would appreciate it.



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

Archive: http://www.houseoffusion.com/groups/regex/message.cfm/messageid:1203
Subscription: http://www.houseoffusion.com/groups/regex/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.21

Reply via email to