try 
<CFMODULE[^>2]+(sometemplate\.cfm)([^2>]|([^e]2)|([^t]e2))*>
(Make sure 'match case' is not clicked)

I've tested this in studio. This will find all
instances of CFMODULE where the string
'sometemplate.cfm' occurs but where the string 'te2'
does not occur (I've taken your problem literally to
mean that you don't want 'Attribute2', because there
is no general regexp expression which will work with
every choice of name of the parameter attribute2).

--- Aidan Whitehall <[EMAIL PROTECTED]>
wrote:
> I need to add an attribute to a tag within an
> application so (and this is a
> very over-simplified example, BTW) I can find all
> instances of
> 
> <CFMODULE
>    TEMPLATE="sometemplate.cfm"
>    Attribute1="#session.Attribute1#">
> 
> and make them:
> 
> <CFMODULE
>    TEMPLATE="sometemplate.cfm"
>    Attribute1="#session.Attribute1#"
>    Attribute2="#session.Attribute2#">
> 
> Is there a RegEx which says "Find all instances of
> the string
> 'sometemplate.cfm' where the string 'Attribute2'
> doesn't appear before the
> next '>'"?
> 
> 
> 
> Thanks
> 
> 
> Aidan
> -- 
> Aidan Whitehall <[EMAIL PROTECTED]>
> Macromedia ColdFusion Developer
> Fairbanks Environmental +44 (0)1695 51775
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to