What is the php regular expression to get everything before a certain character?