Angela,
Monday, March 04, 2002, 1:25:44 PM, you wrote:

AH> I've a question concerning negations of regular expressions - e.g. I 
AH> want the sentence "this is nice" to match, while the sentence "this is 
AH> not nice" should not match.
AH> I only found possibilities for the negation of single characters on the 
AH> MySQL-site, but what about whole words?!

What about NOT LIKE statement?
For example:
    SELECT * FROM table1 WHERE text1 LIKE 'this is nice' AND NOT LIKE
    'this is not nice';
    
You can see info about pattern matching at:
    http://www.mysql.com/doc/P/a/Pattern_matching.html

AH> Angela





-- 
For technical support contracts, goto https://order.mysql.com/
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Egor Egorov
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
       <___/   www.mysql.com



---------------------------------------------------------------------
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

Reply via email to