Results 1 to 8 of 8
-
17th Jul 2010, 10:11 AM #1OPMemberWebsite's:
maxneeds.infoPreg Replace question
I want to replace all
[img=URL]
with
<img src=URL>
Preg_replace should do it but i am not familiar how.
Any suggestions?
New question :
Hi there !
Because i didn't wanted to make a new post i will just edit this one.
How do i 'preg_match' starting from '=' and ending to '&'
example :: http://bkabkabk.com/index.php?file=aadasd.jpg&optionsPorsche_maniak Reviewed by Porsche_maniak on . Preg Replace question I want to replace all with <img src=URL> Preg_replace should do it but i am not familiar how. Any suggestions? New question : Hi there ! Rating: 5
-
17th Jul 2010, 10:26 AM #2Retired NinJaWebsite's:
loledhard.comstr_replace(search, replace, String) would work fine for this.
You don't hate Justin bieber.You hate the fact you ain't Justin Bieber!
-
17th Jul 2010, 10:41 AM #3OPMemberWebsite's:
maxneeds.infoIt won't because how would you replace ']' with '>' as there are other tags finishing with ']' (for example [b]) in the same page..
-
17th Jul 2010, 10:48 AM #4MemberWebsite's:
wscripts.net damnlolscript.com lulzjet.compreg_replace('~\[img=(.*?)\]~is','<img src="$1">',$html) should work fine
Code:http://regexr .com?2rq16
-
17th Jul 2010, 10:54 AM #5OPMemberWebsite's:
maxneeds.infot3od0r - worked nicely.
Btw great site i will use it
-
17th Jul 2010, 10:57 AM #6Member
You can convert full bbcode to html with this, maybe worth it for any more find/replace
http://elouai.com/bb2html.php.txt
-
7th Nov 2010, 08:52 AM #7OPMemberWebsite's:
maxneeds.infobump .
-
7th Nov 2010, 08:58 AM #8MemberWebsite's:
wscripts.net damnlolscript.com lulzjet.comfor the new question: =(.*)&
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Preg and Sql
By Chris2k in forum Web Development AreaReplies: 6Last Post: 28th Apr 2012, 02:19 PM -
Which is the best replace tools
By tcnnvnn in forum Webmaster DiscussionReplies: 5Last Post: 29th Sep 2011, 09:40 AM -
how to replace word in vb4
By m107 in forum vBulletinReplies: 13Last Post: 4th Sep 2010, 09:20 AM -
Preg replace help
By SJshah in forum Web Development AreaReplies: 17Last Post: 8th Aug 2010, 10:47 PM -
how to replace bad words?
By wman in forum vBulletinReplies: 2Last Post: 19th Feb 2009, 12:18 PM
themaPoster - post to forums and...
Version 5.22 released. Open older version (or...