change the {1,1) bit to read {1,2} so that it matches one instance or 2 of
the [a-z] search.
so it would be: ([a-z]{1,2}[0-9]{2,2})
and you'd only need to run that once - ie not have text2.
> -----Original Message-----
> From: Damian Watson [mailto:[EMAIL PROTECTED]
> Sent: 19 August 2003 13:40
> To: [EMAIL PROTECTED]
> Subject: Re: [ cf-dev ] RegEx I assume
>
>
> One final question on this-- I need to extend the
> functionality to include
> text with AA11 (two alphas and two numerals). What I've done is:
>
> <cfsavecontent
> variable="Text">#REReplaceNoCase(Includes,"([a-z]{1,1}[0-9]{2,
> 2})", "<a
> href='whatever.htm?combo=\1'>\1</a>", "ALL"#</cfsavecontent>
> <cfsavecontent
> variable="Text2">#REReplaceNoCase(Text,"([a-z]{2,2}[0-9]{2,2})", "<a
> href='whatever.htm?combo=\1'>\1</a>", "ALL"#</cfsavecontent>
>
> This of course does not work in the second regex because the
> first one has
> taken out everything with A12 in it. So the question is, can
> this be done in
> one statement? - or what is the regex to do
> "([a-z]{1,1}[0-9]{2,2})" but
> with a space in front...
>
> Cheers
> d
>
>
>
> ----- Original Message -----
> From: "Simon Horwith" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, August 18, 2003 3:13 PM
> Subject: RE: [ cf-dev ] RegEx I assume
>
>
> > You could go a step further and REReplaceNoCase(longstring,
> > ([a-z]{1,1}[0-9]{2,2}), "<a
> href='whatever.htm?combo=\1'>\1</a>", "ALL")
> >
> > ~Simon
> >
> > Simon Horwith
> > CTO, Etrilogy Ltd.
> > Member of Team Macromedia
> > Macromedia Certified Instructor
> > Certified Advanced ColdFusion MX Developer
> > Certified Flash MX Developer
> > CFDJList - List Administrator
> > http://www.how2cf.com/
> >
> >
> > -----Original Message-----
> > From: Tim Blair [mailto:[EMAIL PROTECTED]
> > Sent: 18 August 2003 15:06
> > To: [EMAIL PROTECTED]
> > Subject: RE: [ cf-dev ] RegEx I assume
> >
> >
> >
> > I'd replace this:
> > [A-Za-z]{1,1}[0-9]{2,2}
> >
> > With this:
> > [A-Za-z][0-9]{2}
> >
> > But that's just me... ;)
> >
> > Tim.
> >
> >
> > -------------------------------------------------------
> > RAWNET LTD - Internet, New Media and ebusiness Gurus.
> > Visit our new website at http://www.rawnet.com for
> > more information about our company, or call us free
> > anytime on 0800 294 24 24.
> > -------------------------------------------------------
> > Tim Blair
> > Web Application Engineer, Rawnet Limited
> > Direct Phone : +44 (0) 1344 393 441
> > Switchboard : +44 (0) 1344 393 040
> > -------------------------------------------------------
> > This message may contain information which is legally
> > privileged and/or confidential. If you are not the
> > intended recipient, you are hereby notified that any
> > unauthorised disclosure, copying, distribution or use
> > of this information is strictly prohibited. Such
> > notification notwithstanding, any comments, opinions,
> > information or conclusions expressed in this message
> > are those of the originator, not of rawnet limited,
> > unless otherwise explicitly and independently indicated
> > by an authorised representative of rawnet limited.
> > -------------------------------------------------------
> >
> >
> >
> >
> > --
> > ** 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]