View Single Post
Old 06-06-2012, 03:40 PM  
RazorSharpe
Confirmed User
 
RazorSharpe's Avatar
 
Industry Role:
Join Date: Aug 2001
Location: Scotland
Posts: 2,238
Quote:
Originally Posted by Confined View Post
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
__________________
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
RazorSharpe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote