if ( preg_match_all( '/([-+<>~]?)(([' . $lc . ']+)(\*?)|"[^"]*")/',
$filteredText, $m, PREG_SET_ORDER ) ) {
foreach ( $m as $terms ) {
if ( preg_match_all( '/([-+<>~]?)(([' . $lc . ']+)(\*?)|"[^"]*")/',
$filteredText, $m, PREG_SET_ORDER ) ) {
foreach ( $m as $terms ) {
if ( !empty( $terms[3] ) ) {
$regexp = preg_quote( $terms[3], '/' );
if ( !empty( $terms[3] ) ) {
$regexp = preg_quote( $terms[3], '/' );