What php code would I use to strip [tags]keywords,keywords,etc[/tags] from a feed?
PHP Help
Collapse
X
-
-
You need to look up preg_replace
http://php.net/manual/en/function.preg-replace.php
Use [tags] and [/tags] and a wild card in the middlehttp://www.webcamalerts.com for auto tweets for web cam operatorsComment
-
if you want to invest a few bucks, hit me up, icq: 33375924Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip ManagerComment
-
Code:<?php $str = "Remove this [tags]amateur, anal, teen,etc[/tags] stuff out of here!"; $regexp = "#\[tags\](.*?)\[/tags\]#is"; echo preg_replace($regexp, "", $str); ?>
Comment
-
-
I did not test this, but looks good to me.
I would also check out the explode() function after this and split it up using the comma delimiter into an array so you could then add each individual tag into a normalized DB.[email protected]
ICQ: 269486444
ZoxEmbedTube - Build unlimited "fake" tubes with this easy 100% unencoded CMS!Comment

Comment