I was wondering if anyone would have a solution to my problem:
I am trying to get stock information from a site and use it in a way that is better for me.
the site I am using lets me pull the company name and symbol but it returns it as one line
so when I pull google's stock the first line I get is :
Google Inc. (Nasdaq:GOOG)
I would like to have php take everything before the first paren "(" and assign it to $name
and everything between the ":" and the last paren ")" assign it to $symbol
it seems like it would be easy but I can't figure it out as the regex rules REALLY confuse me. Or is regex the right way to go?[/quote]


