![]() |
anyone good at regex ? help needed.
i have word press site,
it has links in each post in following pattern. http://jump2link.net/watch/getdownloadmanager.php?movie=Sculpture%20(2009)%20 &authid=1321 http://jump2link.net/watch/getdownloadmanager.php?movie=Dreams%20and%20Shadow s%20(2009)%20&authid=1321 so i want to replace all these links using "search regex" plugin. i neeed help in generating regex pattern so that all links will get searched by this plugin and i can replace them. thanks for your time. |
as u can see the
http://jump2link.net/watch/getdownloadmanager.php?movie= this part is constant in each url and later on the movie name which is random in each post. |
if I have to take a (very) wild guess here, you should be able to do that in MySQL without having to mess with regex at all
there should be a query that finds "http://jump2link.net/watch/getdownloadmanager.php?movie=" in your links and then you can replace them with other entries????? or a few lines of PHP??? |
Quote:
|
i got it,
search for /getdownloadmanager.php\?([^\"]*)\">/iU i.e. # starts with: getdownloadmanager.php? # a series of characters up to, but not including, the next double-quote (") - 1st capture # the string: "> |
Dunno if this will work i just typed it in here havn't tested.
Code:
|
All times are GMT -7. The time now is 02:26 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc