Works a treat Rich, thanks. Just out of interest can you do stuff like '[\1
class="something" | \2 class="somethingelse"]' in the second attribute?

#rereplacenocase(body, '(<[a|p])', '\1 class="mainBody"', "ALL")#

----- Original Message ----- 
From: "Rich Wild" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 20, 2003 8:52 AM
Subject: RE: [ cf-dev ] Regex


> rereplacenocase(mystring, "(<[a|p])", "\1 class=whatever ", "ALL") should
do
> it, haven't tested it though.
>
> > -----Original Message-----
> > From: Damian Watson [mailto:[EMAIL PROTECTED]
> > Sent: 19 October 2003 11:43
> > To: [EMAIL PROTECTED]
> > Subject: [ cf-dev ] Regex
> >
> >
> > Hi,
> >
> > I want a regex that replaces <p with <p class="whatever" and
> > <a with <a class="whatever" -- is it possible to do this in
> > one or do I have to run two expressions?
> >
> > d
> >
> >
> >
> > -- 
> > ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> >
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED] For human help, e-mail:
> > [EMAIL PROTECTED]
> >
>
>
> -- 
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> For human help, e-mail: [EMAIL PROTECTED]
>
>



-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to