Hello Richard, At 05:06 PM 12/10/2002 -0800, Richard Baskett wrote: >SELECT * FROM `table_name` WHERE Email REGEXP "^[@]"; >But I am doing something wrong, because it's just not working :)
You are searching for an Email field that begins with an @. Some alternatives: SELECT * FROM `table_name` WHERE Email not REGEXP "@" SELECT * FROM `table_name` WHERE Email not like "%@%" For a more detailed discussion, I recommend the book "Mastering Regular Expressions, 2nd Edition": http://www.oreilly.com/catalog/regex2 Regards, - Robert sql,query --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php