We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Searching for URLs over database

Hello,

I have to pull all external links from my database and save it somewhere (ex. new database or txt file). What is the best solution for searching url links trought whole database and exporting them. I have around 100 tables so I dont want to that manualy.



23.6k

REGEXP is the magic keyword. https://stackoverflow.com/questions/9033018/regexp-to-validate-url-in-mysql

Thats it friend. Now I have to find a way to preform it on all database not specific tables...

Other scenarios would be: