Is that enough self-satisfaction to power a small windmill Stephen? Could be
an alternative form of energy in the future all thanks to regex :)

Kevin, I think Paul J on this list has a website with explications and
stuff...

----- Original Message ----- 
From: "Stephen Pope" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 20, 2003 9:51 AM
Subject: RE: [ cf-dev ] Regex


Ive avoided regex for so long but so much stuff here is in Perl that I
couldn't avoid it any longer ! Its quite a learning curve hehe but with a
bizarre sense of satisfaction at the end ! :¬)

Stephen

-----Original Message-----
From: Damian Watson [mailto:[EMAIL PROTECTED]
Sent: 20 October 2003 09:48
To: [EMAIL PROTECTED]
Subject: Re: [ cf-dev ] Regex

Got it now, not only is it Monday morning, I'm also at the lower end of the
regex learning curve- a painful combination if there ever was one ;0)

It's beginning to make sense though, I've passed the brain scramble stage...

----- Original Message ----- 
From: "Stephen Pope" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 20, 2003 9:39 AM
Subject: RE: [ cf-dev ] Regex


\1 refers to a back-reference ( the stuff between the brackets in the
regex) .. if you wanted 2 you'd need 2 reg-ex's !

I think .. it is Monday morning !

Regards

Stephen
-----Original Message-----
From: Damian Watson [mailto:[EMAIL PROTECTED]
Sent: 20 October 2003 09:36
To: [EMAIL PROTECTED]
Subject: Re: [ cf-dev ] Regex

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]


-- 
** 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]



-- 
** 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