>- see footer for list info -<
I might the missing something here, but if it's a case of direct match why
bother using regex at all? Just do a direct comparison i.e. <cfif trim(var1)
is "string".....

If you need to use regex, I'm pretty sure the string (i.e, "simon") you are
trying to match for will be the regex.

Hth
Mark

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Simon Baynes
Sent: 07 December 2005 13:29
To: Coldfusion Development
Subject: Re: [CF-Dev] Exact Match with RegEx

>- see footer for list info -<
I want to pass in some regEx and get true if it matches exactly (ie no other
text) and false for all other conditions.

So passing in 'simon' would match 'simon' but not 'simon baynes'

Make sense, I know I can achieve this by doing a reReplace() and then a
len() but I wondered if there was a cleaner way.

On 12/7/05, Stephen Moretti <[EMAIL PROTECTED]> wrote:
> >- see footer for list info -<
> Simon Baynes wrote:
> >> - see footer for list info -<
> >>
> > Anyone know a way of doing an exact pattern match in CF using regEx. 
> > I cannot find anything out there that does it.
> >
> > I though about deleting it via reReplace() and then using len() but 
> > that seems a bit messy.
> >
> > Any thoughts?
> ummm... REFind() REFindNoCase() ???
>
> What is it exactly you're tryin to do?
>
> Stephen
> _______________________________________________
>
> For details on ALL mailing lists and for joining or leaving lists, go 
> to http://list.cfdeveloper.co.uk/mailman/listinfo
>
> --
> CFDeveloper Sponsors:-
> >- Hosting provided by www.cfmxhosting.co.uk -<
> >- Forum provided by www.fusetalk.com -<
> >- DHTML Menus provided by www.APYCOM.com -<
> >- Lists hosted by www.Gradwell.com -<
> >- CFdeveloper is run by Russ Michaels, feel free to volunteer your 
> >help -<
>


--
Simon Baynes
www.simonbaynes.com
_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help 
>-<




_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

Reply via email to