<cfset myVal = '<%@ attribute name="myName" type="mytype"
required="false" description="mydescription" %>'>
<cfoutput>
        <p>
                name = #reReplace(myVal,'(.*)name="(.*?)"(.*)','\2','ALL')#<br>
                type = #reReplace(myVal,'(.*)type="(.*?)"(.*)','\2','ALL')#<br>
                required = 
#reReplace(myVal,'(.*)required="(.*?)"(.*)','\2','ALL')#<br>
                description = 
#reReplace(myVal,'(.*)description="(.*?)"(.*)','\2','ALL')#<br>
        </p>
</cfoutput>

Should get you started.

--
Jay

On Wed, Apr 2, 2008 at 3:27 AM, Dan Vega <[EMAIL PROTECTED]> wrote:
> I have a bunch of text that I need to pull values out of. Take for instance
>  the following string.
>
>  <%@ attribute name="myName type="mytype" required="false"
>  description="mydescription" %>
>
>
>  Using regext how can I pull the value between
>  name,type,required,description?
>
>  name =
>  type =
>  etc...
>
>  I suck at regex so Im sure this is an easy one for most of you. Thanks!!!

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

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

Reply via email to