Results 1 to 8 of 8
Threaded View
-
26th Apr 2011, 08:34 PM #1OPMemberWebsite's:
premium-links.net wanted-programs.comphp help regex!
i have to do a simple work
i have to find all <youtube>v=xxxxxx</youtube> in post of a wordpress
and replace then custom way!
Code:function the_content($more_link_text = null, $stripteaser = 0) { $content = get_the_content($more_link_text, $stripteaser); $content = apply_filters('the_content', $content); $content = str_replace(']]>', ']]>', $content); preg_match_all('#<youtube>(.*?)</youtube>#i', $content, $link_matches); if (count($link_matches) > 0){ foreach ($link_matches as $link_value){ echo $link_value; } } return $content; }
pls help!?RaJ? Reviewed by ?RaJ? on . php help regex! i have to do a simple work i have to find all <youtube>v=xxxxxx</youtube> in post of a wordpress and replace then custom way! function the_content($more_link_text = null, $stripteaser = 0) { $content = get_the_content($more_link_text, $stripteaser); $content = apply_filters('the_content', $content); Rating: 5
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Regex in shell
By mahjong in forum Server ManagementReplies: 0Last Post: 8th Apr 2012, 08:58 AM -
Need help with RegEx
By dima1236 in forum Web Development AreaReplies: 7Last Post: 14th Jan 2012, 05:53 PM -
Need help with Regex - VB.NET
By Connor in forum Web Development AreaReplies: 2Last Post: 27th Sep 2011, 05:11 PM -
Help with Regex
By ChaoscripT in forum Web Development AreaReplies: 2Last Post: 15th Dec 2010, 09:26 PM -
need help with some regex
By t3od0r in forum Web Development AreaReplies: 1Last Post: 13th Aug 2010, 04:23 PM
themaLeecher - leech and manage...
Version 5.03 released. Open older version (or...