[thelist] Regular Expression

Raymond Camden jedimaster at macromedia.com
Thu Mar 7 10:00:01 CST 2002


Well, you can still do it w/o regex. Assuming ASP has a ucase func:

if you care about case:
	if(str == "cat")

if you don't care about case:
	if(ucase(str) == "cat")


=======================================================================
Raymond Camden, Principal Spectra Compliance Engineer for Macromedia

Email    : jedimaster at macromedia.com
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda

> -----Original Message-----
> From: thelist-admin at lists.evolt.org
> [mailto:thelist-admin at lists.evolt.org] On Behalf Of dan donaldson
> Sent: Thursday, March 07, 2002 10:06 AM
> To: thelist at lists.evolt.org
> Subject: Re: [thelist] Regular Expression
>
>
>
> On Thursday, March 7, 2002, at 09:48  AM, Raymond Camden wrote:
>
> > Err, I don't know ASP, but isn't this a simple equivalence check?
>
> I don't know it either (PHP guy) but the question would also
> depend on if
>
> cAts
> CATs
> Cats
>
> etc. were valid matches. If so, it's not an equivalence check. In that
> case would
>
> /^[Cc][Aa][Tt][Ss]$/
>




More information about the thelist mailing list