On Tue, 19 Mar 2002, Matthew Harrison wrote: > i need to say something like > if $username = "" then ... > > where "" is literally nothing. i want to match it ONLY if the variable is > totally empty. > > this is my first experience with regex so what should this be?
if(!$username) { .... } An empty string returns boolean false (like 0 does), so you can test for truth in an expression. I think a regex is unnecessary here. -- Brett ------------------------------------------------------------------------ The sooner you fall behind, the more time you have to catch up. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]