Re: exclude part of text

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Please try:

preg_match('/^[^\>]*\>(.*)\*.*$/', $line, $matches);

021 wrote:
> the log file is from a radio playlist:
> 
> TIME > ARTIST - TITLE *SONG_CATEGORY
> 
> for example
> 
> 17:12:26 > THE CURE - ALT.END *NEW
> 
> the values before > and after * are changing, hope there's a simple
> solution for this
> 
> thanx
> 


-- 
David Grant
http://www.grant.org.uk/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux