pattern | - is a string that is a perl compatible regular expression as documented at: http://us.php.net/manual/en/ref.pcre.php This expression passed to this function should have delimiters and can contain the standard perl modifiers after the ending delimiter. | |
subject | - is the data to perform the test on. |
0 - no match
Yields:
+---------------------------------------------------------------+ | PREG_RLIKE('/The quick brown fox/i' , 'the quick brown fox' ) | +---------------------------------------------------------------+ | 1 | +---------------------------------------------------------------+ *
SELECT * from products WHERE PREG_RLIKE( '/organic/i' , products.title )
Yields: all of the products with 'organic' in their titles