[thelist] Regular Expression

Howard Cheng howcheng at ix.netcom.com
Thu Mar 7 11:47:09 CST 2002


If all of these were valid matches, you still wouldn't need a regular
expression (and you wouldn't need it in PHP either).

Just force them to uppercase (or lowercase) and compare them.

VB:
If UCase(str) = "CATS" Then
     ...
End If

PHP:
if (strtoupper($str)=="CATS") {
     ...
}

At 10:05 AM 3/7/2002 -0500, dan donaldson wrote:
>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]$/
>
>
>not be the way to go?

::::::::::::::::::::::
Howard Cheng
howcheng at ix.netcom.com
AIM: bennyphoebe
ICQ: 47319315




More information about the thelist mailing list