PDA

View Full Version : What is the php regular expression to get everything before a certain character?



zerugaze
02-26-2009, 07:26 PM
For instance, I have the following string:

table:column

I need to get "table" as the result of the php regular expression.

So, I need everything before the ":" symbol

After that regular expression is performed, I would also like to get everything after the ":" symbol, or "column" as well.