By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,373 Members | 1,792 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,373 IT Pros & Developers. It's quick & easy.

Pattern Matching

P: 1
hi

i am pretty new to mysql, sorry if the question is to dum.

how can i search " <a href="http://depositfiles.com/files/*********"> " and delete it?
every * is a number or a character.

i found this on the internet:
UPDATE wp_posts SET `post_content`
= REPLACE (`post_content`,
'blabla',
' ');

but it can be used only for exactly matches.
May 5 '12 #1
Share this Question
Share on Google+
1 Reply


100+
P: 1,059
try this query

Expand|Select|Wrap|Line Numbers
  1. SELECT wp_posts WHERE post_content REGEXP '<a href="http://depositfiles.com/files/\.{9}">'
  2.  
for explanation please read pattern matching
May 7 '12 #2

Post your reply

Sign in to post your reply or Sign up for a free account.