I
I
i_want_to_know_everything2017-10-09 11:36:01
PHP
i_want_to_know_everything, 2017-10-09 11:36:01

PHP regex not working?

Line OR ( wp_posts.post_excerpt LIKE '%Gala%') ,OR (wp_posts.post_content LIKE '%Gala%
' ) from query all OR (wp_posts.post_excerpt LIKE '%Gala%') with any LIKE value
/('%[^%]+%')/
/OR (wp_posts.post_excerpt LIKE ('%[^%]+%'))/

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
vyrkmod, 2017-10-09
@vyrkmod

/(OR \(wp_posts.post_excerpt LIKE \('%[^%]+%'\)\))/

The selection must be enclosed in brackets, and special characters in the expression must be escaped.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question