Results 1 to 3 of 3
-
15th Aug 2011, 06:09 PM #1OPMember
Lulzimg preg_replace help
Can anyone make me a preg_replace to convert lulzimages from this:
http://lulzimg.com/i04/452b0o.jpg
to this current one:
http://i04.lulzimg.com/i/452b0o.jpg
I suck at regexmasterb56 Reviewed by masterb56 on . Lulzimg preg_replace help Can anyone make me a preg_replace to convert lulzimages from this: http://lulzimg.com/i04/452b0o.jpg to this current one: http://i04.lulzimg.com/i/452b0o.jpg I suck at regex :facepalm: Rating: 5
-
15th Aug 2011, 06:23 PM #2Retired NinJaWebsite's:
loledhard.comPHP Code:echo preg_replace('/http:\/\/lulzimg.com\/(.*?)\/(.*?)\n/','http://$1.lulzimg.com/i/$2',$string."\n");
You don't hate Justin bieber.You hate the fact you ain't Justin Bieber!
-
15th Aug 2011, 06:31 PM #3OPMember
Wow man that was fast! Haha I was butting my head trying to figure out that one with just doing long preg_match codes lolz. Thanks! Rep+++
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Preg_replace help
By Gavo in forum Web Development AreaReplies: 3Last Post: 25th Sep 2012, 07:23 PM -
Replace with Dynamic variable in preg_replace
By MarPlo in forum Web Development AreaReplies: 2Last Post: 21st Feb 2012, 08:36 AM -
Wordpress title preg_replace
By energyboost in forum WordpressReplies: 2Last Post: 3rd Oct 2011, 11:47 PM -
lulzimg
By ciaociao4 in forum Web Development AreaReplies: 5Last Post: 17th Aug 2011, 07:55 AM -
preg_replace first half of matches ?
By Porsche_maniak in forum Web Development AreaReplies: 1Last Post: 16th Jan 2011, 05:12 PM
themaCreator - create posts from...
Version 3.47 released. Open older version (or...