wordpress/wp-content/plugins/sqlite-integration/functions.php
/**
	 * Method to emulate MySQL REGEXP() function.
	 *
	 * @param string $field haystack
	 * @param string $pattern: regular expression to match.
	 * @return integer 1 if matched, 0 if not matched.
	 */
Method to emulate MySQL REGEXP() function.
@param string $field haystack
@param string $pattern: regular expression to match.
@return integer 1 if matched, 0 if not matched.
Method to emulate MySQL REGEXP () function . @param string $field haystack @param string $pattern : regular expression to match . @return integer 1 if matched 0 if not matched .
public function regexp($field, $pattern){
		$pattern = str_replace('/', '\/', $pattern);
		$pattern = "/" . $pattern ."/i";
		return preg_match ($pattern, $field);
	}
public function regexp ( $ field , $ pattern ) { $ pattern = str_replace ( '/' , '\/' , $ pattern ) ; $ pattern = " / " . $ pattern . " /i " ; return preg_match ( $ pattern , $ field ) ; }
Method to emulate MySQL REGEXP() function.
Method to emulate MySQL REGEXP () function .