Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 03-07-2011, 11:45 PM   #1
cooldude7
Confirmed User
 
cooldude7's Avatar
 
Industry Role:
Join Date: Nov 2009
Location: Heaven
Posts: 4,306
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.

Last edited by cooldude7; 03-07-2011 at 11:47 PM..
cooldude7 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-07-2011, 11:48 PM   #2
cooldude7
Confirmed User
 
cooldude7's Avatar
 
Industry Role:
Join Date: Nov 2009
Location: Heaven
Posts: 4,306
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.
cooldude7 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-08-2011, 12:01 AM   #3
Antonio
Too lazy to set a custom title
 
Antonio's Avatar
 
Join Date: Oct 2001
Location: Spartaaaaaaaaa
Posts: 14,136
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???
Antonio is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-08-2011, 12:07 AM   #4
cooldude7
Confirmed User
 
cooldude7's Avatar
 
Industry Role:
Join Date: Nov 2009
Location: Heaven
Posts: 4,306
Quote:
Originally Posted by Antonio View 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???
thanks for your reply, i m looking for it now.
cooldude7 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-08-2011, 12:57 AM   #5
cooldude7
Confirmed User
 
cooldude7's Avatar
 
Industry Role:
Join Date: Nov 2009
Location: Heaven
Posts: 4,306
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: ">
cooldude7 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-08-2011, 01:01 AM   #6
HarryMuff
Confirmed User
 
HarryMuff's Avatar
 
Join Date: Dec 2005
Posts: 271
Dunno if this will work i just typed it in here havn't tested.

Code:
/^(http:\/\/jump2link.net\/watch\/getdownloadmanager.php?movie=){1}.+(1321){1}$/
HarryMuff is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.