preg match - Search URL from Database using regular expression in SQL-Query -


i want search url "www.google.co.in/" database table. when search adding "google.co.in/" query not able search , find record because 'www' not added. want use regular expression in query search 'google.co.in' table (it doesnot mater whether http or www added or not)

for using simple like operator search: select * wp_postmeta meta_value '%www.google.co.in/%'

just try search this:

select * wp_postmeta meta_value '%google.co.in%' 

or

select * wp_postmeta meta_value '%google%' 

Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -