Possible Duplicates:
PHP Regex to convert text before colon to link
Return the portion of a string before the first occurrence of a character in PHP
I need to get the username from a Twitter RSS feed.
I am returning this data from the feed as the title, and I want to extract the username.
UsernameIwanttoget:This is the Twitter message....
So basically, get all the text before :
.