Quote:
Originally Posted by Confined
PHP Code:
$preg = '@';
$preg .= '([a-zA-Z0-9 \!\&\.\/\'\"\#\&\;\_\-\:]+)'; //title
$preg .= '[\s\r\n\f]*'; //newline u want to avoid
$preg .= '\|([A-Za-z0-9 \?\/#\;\,\.\:\&\!\'\"]*)'; //descr
$preg .= '\|([a-zA-Z0-9 \?\,\&\.\/\_\-\:=]+)'; //siteurl
$preg .= '\|([A-Za-z0-9 \/\,\.\:\&\;\!\'\"]*)'; //tags
$preg .= '[\s\t\r\n\f]+'; //endofline
$preg .= '@i';
as a start. itll be different if there are quotes and shit around it.
what sponsor?
|
Hi,
There are quotes around the title that need to be removed. The sponsor is pimproll.
The description, site url, and the rest are just fine, all I need to do is remove quote before title, remove a line break just after title and remove a quote that closes off the title
Basically looking to make this:
"title
"|
into this:
title|
Cheers