I've found some Perl books very helpful .. There is a chapter (well a couple of 
chapters) in O'Reilly Learning Perl book which really helped me get my head around 
RegEx (ie its nice and slow just like me hehe).. I know there is a O'Reilly book 
called Mastering Regular Expressions which is supposed to be good (but I haven't 
looked at it)

Stephen

-----Original Message-----
From: Kevin Faulkner [mailto:[EMAIL PROTECTED] 
Sent: 20 October 2003 09:56
To: '[EMAIL PROTECTED]'
Subject: RE: [ cf-dev ] Regex

are there any good tutorials around? I've hardly used it at all, but it
seems similar to sed which I've used in a previous lifetime.

-----Original Message-----
From: Rich Wild [mailto:[EMAIL PROTECTED]
Sent: 20 October 2003 09:56
To: '[EMAIL PROTECTED]'
Subject: RE: [ cf-dev ] Regex


yea - it is difficult to get your head around, but once you start using them
and feeling the awesome power of the Death Star, erm... regex then you'll
find them immensely rewarding - especially when you can lose 9 or 10 lines
of replace code.

> -----Original Message-----
> From: Stephen Pope [mailto:[EMAIL PROTECTED] 
> Sent: 20 October 2003 09:51
> To: [EMAIL PROTECTED]
> 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]
DISCLAIMER: This e-mail is confidential and may also be legally privileged.
If you are not the intended recipient, use of the information contained in
this e-mail (including disclosure, copying or distribution) is prohibited
and may be unlawful.  Please inform the sender and delete the message
immediately from your system.  This e-mail is attributed to the sender and
may not necessarily reflect the views of the Patsystems Group and no member
of the Patsystems Group accepts any liability for any action taken in
reliance on the contents of this e-mail (other than where it has a legal or
regulatory obligation to do so) or for the consequences of any computer
viruses which may have been transmitted by this e-mail. The Patsystems Group
comprises Patsystems plc and its subsidiary group of companies.

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