旧新网址替换旧网址
匹配根域名,可用于数据库批量替换
((http://)|(https://))?([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,6}(/)
UPDATE table_name SET column_name = REGEXP_REPLACE(column_name, ‘pattern’, ‘新网址’);
旧新网址替换旧网址
匹配根域名,可用于数据库批量替换
((http://)|(https://))?([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,6}(/)
UPDATE table_name SET column_name = REGEXP_REPLACE(column_name, ‘pattern’, ‘新网址’);
© 2024 九天博客 — Powered by WordPress
Theme by Anders Noren — Up ↑
近期评论