regex makes my head hurt :-), but I do have two UDFs from CF5 days, that
will return the attribute value or the entity value for a valid XML tag such
as you show. Can supply if required.

Regex will probably be more efficient and by the time I've typed this
someone clever will have solved it for you....:-)

On 3/14/06, Rick Root <[EMAIL PROTECTED]> wrote:
>
> Given the following text:
>
> [quote name="foo"]This is quoted text[/quote]
>
> How would I use a regular expression to return two variables containing
> the text "foo" and "This is quoted text"?
>
> Thanks.
>
> Rick
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:235297
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to